home *** CD-ROM | disk | FTP | other *** search
MacBinary | 1993-06-23 | 918.0 KB | [ONLN/HLX2] |
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: MacBinary
(archive/macBinary).
Confidence | Program | Detection | Match Type | Support
|
---|
10%
| dexvert
| MacBinary (archive/macBinary)
| fallback
| Supported |
100%
| file
| MacBinary II, inited, Wed Jun 23 10:22:25 1993, modified Wed Jun 23 10:24:01 1993, creator 'HLX2', type 'ONLN', 921016 bytes "IM-Component Manager" , at 0xe0e38 18757 bytes resource
| default (weak)
| |
99%
| file
| data
| default
| |
66%
| TrID
| raw Group 3 FAX bitmap
| default (weak)
| |
33%
| TrID
| MacBinary 2
| default (weak)
| |
100%
| siegfried
| fmt/1762 MacBinary (II)
| default
| |
100%
| lsar
| MacBinary
| default
|
|
id metadata |
---|
key | value |
---|
macFileType | [ONLN] |
macFileCreator | [HLX2] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 14 49 4d 2d 43 6f 6d | 70 6f 6e 65 6e 74 20 4d |..IM-Com|ponent M|
|00000010| 61 6e 61 67 65 72 00 00 | 00 00 00 00 00 00 00 00 |anager..|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 4f 4e 4c 4e 48 4c 58 | 32 01 00 00 00 00 00 00 |.ONLNHLX|2.......|
|00000050| 00 00 00 00 0e 0d b8 00 | 00 49 45 a8 4e 17 a1 a8 |........|.IE.N...|
|00000060| 4e 18 01 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |N.......|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 7f b8 00 00 |........|........|
|00000080| 4c 69 73 74 69 6e 67 20 | 31 2d 30 0d 54 61 62 6c |Listing |1-0.Tabl|
|00000090| 65 20 31 2d 30 0d 43 6f | 6d 70 6f 6e 65 6e 74 20 |e 1-0.Co|mponent |
|000000a0| 4d 61 6e 61 67 65 72 0d | 43 6f 6e 74 65 6e 74 73 |Manager.|Contents|
|000000b0| 0d 49 6e 74 72 6f 64 75 | 63 74 69 6f 6e 20 74 6f |.Introdu|ction to|
|000000c0| 20 43 6f 6d 70 6f 6e 65 | 6e 74 73 14 14 31 2d 33 | Compone|nts..1-3|
|000000d0| 0d 41 62 6f 75 74 20 74 | 68 65 20 43 6f 6d 70 6f |.About t|he Compo|
|000000e0| 6e 65 6e 74 20 4d 61 6e | 61 67 65 72 14 14 31 2d |nent Man|ager..1-|
|000000f0| 34 0d 55 73 69 6e 67 20 | 74 68 65 20 43 6f 6d 70 |4.Using |the Comp|
|00000100| 6f 6e 65 6e 74 20 4d 61 | 6e 61 67 65 72 14 14 31 |onent Ma|nager..1|
|00000110| 2d 36 0d 4f 70 65 6e 69 | 6e 67 20 43 6f 6e 6e 65 |-6.Openi|ng Conne|
|00000120| 63 74 69 6f 6e 73 20 74 | 6f 20 43 6f 6d 70 6f 6e |ctions t|o Compon|
|00000130| 65 6e 74 73 14 14 31 2d | 37 0d 4f 70 65 6e 69 6e |ents..1-|7.Openin|
|00000140| 67 20 61 20 43 6f 6e 6e | 65 63 74 69 6f 6e 20 74 |g a Conn|ection t|
|00000150| 6f 20 61 20 44 65 66 61 | 75 6c 74 20 43 6f 6d 70 |o a Defa|ult Comp|
|00000160| 6f 6e 65 6e 74 14 14 31 | 2d 37 0d 46 69 6e 64 69 |onent..1|-7.Findi|
|00000170| 6e 67 20 61 20 53 70 65 | 63 69 66 69 63 20 43 6f |ng a Spe|cific Co|
|00000180| 6d 70 6f 6e 65 6e 74 14 | 14 31 2d 38 0d 4f 70 65 |mponent.|.1-8.Ope|
|00000190| 6e 69 6e 67 20 61 20 43 | 6f 6e 6e 65 63 74 69 6f |ning a C|onnectio|
|000001a0| 6e 20 74 6f 20 61 20 53 | 70 65 63 69 66 69 63 20 |n to a S|pecific |
|000001b0| 43 6f 6d 70 6f 6e 65 6e | 74 14 14 31 2d 39 0d 47 |Componen|t..1-9.G|
|000001c0| 65 74 74 69 6e 67 20 49 | 6e 66 6f 72 6d 61 74 69 |etting I|nformati|
|000001d0| 6f 6e 20 41 62 6f 75 74 | 20 61 20 43 6f 6d 70 6f |on About| a Compo|
|000001e0| 6e 65 6e 74 14 14 31 2d | 31 30 0d 55 73 69 6e 67 |nent..1-|10.Using|
|000001f0| 20 61 20 43 6f 6d 70 6f | 6e 65 6e 74 14 14 31 2d | a Compo|nent..1-|
|00000200| 31 31 0d 43 6c 6f 73 69 | 6e 67 20 61 20 43 6f 6e |11.Closi|ng a Con|
|00000210| 6e 65 63 74 69 6f 6e 20 | 74 6f 20 61 20 43 6f 6d |nection |to a Com|
|00000220| 70 6f 6e 65 6e 74 14 14 | 31 2d 31 32 0d 43 72 65 |ponent..|1-12.Cre|
|00000230| 61 74 69 6e 67 20 43 6f | 6d 70 6f 6e 65 6e 74 73 |ating Co|mponents|
|00000240| 14 14 31 2d 31 32 0d 54 | 68 65 20 53 74 72 75 63 |..1-12.T|he Struc|
|00000250| 74 75 72 65 20 6f 66 20 | 61 20 43 6f 6d 70 6f 6e |ture of |a Compon|
|00000260| 65 6e 74 14 14 31 2d 31 | 33 0d 48 61 6e 64 6c 69 |ent..1-1|3.Handli|
|00000270| 6e 67 20 52 65 71 75 65 | 73 74 73 20 66 6f 72 20 |ng Reque|sts for |
|00000280| 53 65 72 76 69 63 65 14 | 14 31 2d 31 38 0d 52 65 |Service.|.1-18.Re|
|00000290| 73 70 6f 6e 64 69 6e 67 | 20 74 6f 20 74 68 65 20 |sponding| to the |
|000002a0| 4f 70 65 6e 20 52 65 71 | 75 65 73 74 14 14 31 2d |Open Req|uest..1-|
|000002b0| 31 38 0d 52 65 73 70 6f | 6e 64 69 6e 67 20 74 6f |18.Respo|nding to|
|000002c0| 20 74 68 65 20 43 6c 6f | 73 65 20 52 65 71 75 65 | the Clo|se Reque|
|000002d0| 73 74 14 14 31 2d 32 30 | 0d 52 65 73 70 6f 6e 64 |st..1-20|.Respond|
|000002e0| 69 6e 67 20 74 6f 20 74 | 68 65 20 43 61 6e 20 44 |ing to t|he Can D|
|000002f0| 6f 20 52 65 71 75 65 73 | 74 14 14 31 2d 32 31 0d |o Reques|t..1-21.|
|00000300| 52 65 73 70 6f 6e 64 69 | 6e 67 20 74 6f 20 74 68 |Respondi|ng to th|
|00000310| 65 20 56 65 72 73 69 6f | 6e 20 52 65 71 75 65 73 |e Versio|n Reques|
|00000320| 74 14 14 31 2d 32 32 0d | 52 65 73 70 6f 6e 64 69 |t..1-22.|Respondi|
|00000330| 6e 67 20 74 6f 20 74 68 | 65 20 52 65 67 69 73 74 |ng to th|e Regist|
|00000340| 65 72 20 52 65 71 75 65 | 73 74 14 14 31 2d 32 32 |er Reque|st..1-22|
|00000350| 0d 52 65 73 70 6f 6e 64 | 69 6e 67 20 74 6f 20 74 |.Respond|ing to t|
|00000360| 68 65 20 55 6e 72 65 67 | 69 73 74 65 72 20 52 65 |he Unreg|ister Re|
|00000370| 71 75 65 73 74 14 14 31 | 2d 32 33 0d 52 65 73 70 |quest..1|-23.Resp|
|00000380| 6f 6e 64 69 6e 67 20 74 | 6f 20 74 68 65 20 54 61 |onding t|o the Ta|
|00000390| 72 67 65 74 20 52 65 71 | 75 65 73 74 14 14 31 2d |rget Req|uest..1-|
|000003a0| 32 34 0d 52 65 73 70 6f | 6e 64 69 6e 67 20 74 6f |24.Respo|nding to|
|000003b0| 20 43 6f 6d 70 6f 6e 65 | 6e 74 2d 53 70 65 63 69 | Compone|nt-Speci|
|000003c0| 66 69 63 20 52 65 71 75 | 65 73 74 73 14 14 31 2d |fic Requ|ests..1-|
|000003d0| 32 35 0d 52 65 70 6f 72 | 74 69 6e 67 20 61 6e 20 |25.Repor|ting an |
|000003e0| 45 72 72 6f 72 20 43 6f | 64 65 14 14 31 2d 32 37 |Error Co|de..1-27|
|000003f0| 0d 44 65 66 69 6e 69 6e | 67 20 61 20 43 6f 6d 70 |.Definin|g a Comp|
|00000400| 6f 6e 65 6e 74 d5 73 20 | 49 6e 74 65 72 66 61 63 |onent.s |Interfac|
|00000410| 65 73 14 14 31 2d 32 37 | 0d 4d 61 6e 61 67 69 6e |es..1-27|.Managin|
|00000420| 67 20 43 6f 6d 70 6f 6e | 65 6e 74 73 14 14 31 2d |g Compon|ents..1-|
|00000430| 32 39 0d 52 65 67 69 73 | 74 65 72 69 6e 67 20 61 |29.Regis|tering a|
|00000440| 20 43 6f 6d 70 6f 6e 65 | 6e 74 14 14 31 2d 32 39 | Compone|nt..1-29|
|00000450| 0d 43 72 65 61 74 69 6e | 67 20 61 20 43 6f 6d 70 |.Creatin|g a Comp|
|00000460| 6f 6e 65 6e 74 20 52 65 | 73 6f 75 72 63 65 14 14 |onent Re|source..|
|00000470| 31 2d 33 31 0d 45 73 74 | 61 62 6c 69 73 68 69 6e |1-31.Est|ablishin|
|00000480| 67 20 61 6e 64 20 4d 61 | 6e 61 67 69 6e 67 20 43 |g and Ma|naging C|
|00000490| 6f 6e 6e 65 63 74 69 6f | 6e 73 14 14 31 2d 33 32 |onnectio|ns..1-32|
|000004a0| 0d 43 6f 6d 70 6f 6e 65 | 6e 74 20 4d 61 6e 61 67 |.Compone|nt Manag|
|000004b0| 65 72 20 52 65 66 65 72 | 65 6e 63 65 14 14 31 2d |er Refer|ence..1-|
|000004c0| 33 35 0d 44 61 74 61 20 | 53 74 72 75 63 74 75 72 |35.Data |Structur|
|000004d0| 65 73 20 66 6f 72 20 41 | 70 70 6c 69 63 61 74 69 |es for A|pplicati|
|000004e0| 6f 6e 73 14 14 31 2d 33 | 36 0d 54 68 65 20 43 6f |ons..1-3|6.The Co|
|000004f0| 6d 70 6f 6e 65 6e 74 20 | 44 65 73 63 72 69 70 74 |mponent |Descript|
|00000500| 69 6f 6e 20 52 65 63 6f | 72 64 14 14 31 2d 33 36 |ion Reco|rd..1-36|
|00000510| 0d 43 6f 6d 70 6f 6e 65 | 6e 74 20 49 64 65 6e 74 |.Compone|nt Ident|
|00000520| 69 66 69 65 72 73 20 61 | 6e 64 20 43 6f 6d 70 6f |ifiers a|nd Compo|
|00000530| 6e 65 6e 74 20 49 6e 73 | 74 61 6e 63 65 73 14 14 |nent Ins|tances..|
|00000540| 31 2d 33 39 0d 52 6f 75 | 74 69 6e 65 73 20 66 6f |1-39.Rou|tines fo|
|00000550| 72 20 41 70 70 6c 69 63 | 61 74 69 6f 6e 73 14 14 |r Applic|ations..|
|00000560| 31 2d 34 30 0d 46 69 6e | 64 69 6e 67 20 43 6f 6d |1-40.Fin|ding Com|
|00000570| 70 6f 6e 65 6e 74 73 14 | 14 31 2d 34 31 0d 4f 70 |ponents.|.1-41.Op|
|00000580| 65 6e 69 6e 67 20 61 6e | 64 20 43 6c 6f 73 69 6e |ening an|d Closin|
|00000590| 67 20 43 6f 6d 70 6f 6e | 65 6e 74 73 14 14 31 2d |g Compon|ents..1-|
|000005a0| 34 33 0d 47 65 74 74 69 | 6e 67 20 49 6e 66 6f 72 |43.Getti|ng Infor|
|000005b0| 6d 61 74 69 6f 6e 20 41 | 62 6f 75 74 20 43 6f 6d |mation A|bout Com|
|000005c0| 70 6f 6e 65 6e 74 73 14 | 14 31 2d 34 36 0d 52 65 |ponents.|.1-46.Re|
|000005d0| 74 72 69 65 76 69 6e 67 | 20 43 6f 6d 70 6f 6e 65 |trieving| Compone|
|000005e0| 6e 74 20 45 72 72 6f 72 | 73 14 14 31 2d 35 30 0d |nt Error|s..1-50.|
|000005f0| 44 61 74 61 20 53 74 72 | 75 63 74 75 72 65 73 20 |Data Str|uctures |
|00000600| 66 6f 72 20 43 6f 6d 70 | 6f 6e 65 6e 74 73 14 14 |for Comp|onents..|
|00000610| 31 2d 35 31 0d 54 68 65 | 20 43 6f 6d 70 6f 6e 65 |1-51.The| Compone|
|00000620| 6e 74 20 44 65 73 63 72 | 69 70 74 69 6f 6e 20 52 |nt Descr|iption R|
|00000630| 65 63 6f 72 64 14 14 31 | 2d 35 31 0d 54 68 65 20 |ecord..1|-51.The |
|00000640| 43 6f 6d 70 6f 6e 65 6e | 74 20 50 61 72 61 6d 65 |Componen|t Parame|
|00000650| 74 65 72 73 20 52 65 63 | 6f 72 64 14 14 31 2d 35 |ters Rec|ord..1-5|
|00000660| 33 0d 52 6f 75 74 69 6e | 65 73 20 66 6f 72 20 43 |3.Routin|es for C|
|00000670| 6f 6d 70 6f 6e 65 6e 74 | 73 14 14 31 2d 35 34 0d |omponent|s..1-54.|
|00000680| 52 65 67 69 73 74 65 72 | 69 6e 67 20 43 6f 6d 70 |Register|ing Comp|
|00000690| 6f 6e 65 6e 74 73 14 14 | 31 2d 35 35 0d 44 69 73 |onents..|1-55.Dis|
|000006a0| 70 61 74 63 68 69 6e 67 | 20 74 6f 20 43 6f 6d 70 |patching| to Comp|
|000006b0| 6f 6e 65 6e 74 20 52 6f | 75 74 69 6e 65 73 14 14 |onent Ro|utines..|
|000006c0| 31 2d 36 31 0d 4d 61 6e | 61 67 69 6e 67 20 43 6f |1-61.Man|aging Co|
|000006d0| 6d 70 6f 6e 65 6e 74 20 | 43 6f 6e 6e 65 63 74 69 |mponent |Connecti|
|000006e0| 6f 6e 73 14 14 31 2d 36 | 34 0d 53 65 74 74 69 6e |ons..1-6|4.Settin|
|000006f0| 67 20 43 6f 6d 70 6f 6e | 65 6e 74 20 45 72 72 6f |g Compon|ent Erro|
|00000700| 72 73 14 14 31 2d 36 37 | 0d 57 6f 72 6b 69 6e 67 |rs..1-67|.Working|
|00000710| 20 57 69 74 68 20 43 6f | 6d 70 6f 6e 65 6e 74 20 | With Co|mponent |
|00000720| 52 65 66 65 72 65 6e 63 | 65 20 43 6f 6e 73 74 61 |Referenc|e Consta|
|00000730| 6e 74 73 14 14 31 2d 36 | 38 0d 41 63 63 65 73 73 |nts..1-6|8.Access|
|00000740| 69 6e 67 20 61 20 43 6f | 6d 70 6f 6e 65 6e 74 d5 |ing a Co|mponent.|
|00000750| 73 20 52 65 73 6f 75 72 | 63 65 20 46 69 6c 65 14 |s Resour|ce File.|
|00000760| 14 31 2d 36 39 0d 43 61 | 6c 6c 69 6e 67 20 4f 74 |.1-69.Ca|lling Ot|
|00000770| 68 65 72 20 43 6f 6d 70 | 6f 6e 65 6e 74 73 14 14 |her Comp|onents..|
|00000780| 31 2d 37 31 0d 43 61 70 | 74 75 72 69 6e 67 20 43 |1-71.Cap|turing C|
|00000790| 6f 6d 70 6f 6e 65 6e 74 | 73 14 14 31 2d 37 32 0d |omponent|s..1-72.|
|000007a0| 54 61 72 67 65 74 69 6e | 67 20 61 20 43 6f 6d 70 |Targetin|g a Comp|
|000007b0| 6f 6e 65 6e 74 20 49 6e | 73 74 61 6e 63 65 14 14 |onent In|stance..|
|000007c0| 31 2d 37 34 0d 43 68 61 | 6e 67 69 6e 67 20 74 68 |1-74.Cha|nging th|
|000007d0| 65 20 44 65 66 61 75 6c | 74 20 53 65 61 72 63 68 |e Defaul|t Search|
|000007e0| 20 4f 72 64 65 72 14 14 | 31 2d 37 35 0d 41 70 70 | Order..|1-75.App|
|000007f0| 6c 69 63 61 74 69 6f 6e | 2d 44 65 66 69 6e 65 64 |lication|-Defined|
|00000800| 20 52 6f 75 74 69 6e 65 | 73 14 14 31 2d 37 37 0d | Routine|s..1-77.|
|00000810| 52 65 73 6f 75 72 63 65 | 73 14 14 31 2d 37 38 0d |Resource|s..1-78.|
|00000820| 54 68 65 20 43 6f 6d 70 | 6f 6e 65 6e 74 20 52 65 |The Comp|onent Re|
|00000830| 73 6f 75 72 63 65 14 14 | 31 2d 37 38 0d 53 75 6d |source..|1-78.Sum|
|00000840| 6d 61 72 79 20 6f 66 20 | 74 68 65 20 43 6f 6d 70 |mary of |the Comp|
|00000850| 6f 6e 65 6e 74 20 4d 61 | 6e 61 67 65 72 14 14 31 |onent Ma|nager..1|
|00000860| 2d 38 33 0d 50 61 73 63 | 61 6c 20 53 75 6d 6d 61 |-83.Pasc|al Summa|
|00000870| 72 79 14 14 31 2d 38 33 | 0d 43 6f 6e 73 74 61 6e |ry..1-83|.Constan|
|00000880| 74 73 14 14 31 2d 38 33 | 0d 44 61 74 61 20 54 79 |ts..1-83|.Data Ty|
|00000890| 70 65 73 14 14 31 2d 38 | 34 0d 52 6f 75 74 69 6e |pes..1-8|4.Routin|
|000008a0| 65 73 20 66 6f 72 20 41 | 70 70 6c 69 63 61 74 69 |es for A|pplicati|
|000008b0| 6f 6e 73 14 14 31 2d 38 | 36 0d 52 6f 75 74 69 6e |ons..1-8|6.Routin|
|000008c0| 65 73 20 66 6f 72 20 43 | 6f 6d 70 6f 6e 65 6e 74 |es for C|omponent|
|000008d0| 73 14 14 31 2d 38 37 0d | 41 70 70 6c 69 63 61 74 |s..1-87.|Applicat|
|000008e0| 69 6f 6e 2d 44 65 66 69 | 6e 65 64 20 52 6f 75 74 |ion-Defi|ned Rout|
|000008f0| 69 6e 65 73 14 14 31 2d | 38 38 0d 43 20 53 75 6d |ines..1-|88.C Sum|
|00000900| 6d 61 72 79 14 14 31 2d | 38 39 0d 43 6f 6e 73 74 |mary..1-|89.Const|
|00000910| 61 6e 74 73 14 14 31 2d | 38 39 0d 44 61 74 61 20 |ants..1-|89.Data |
|00000920| 53 74 72 75 63 74 75 72 | 65 73 14 14 31 2d 39 30 |Structur|es..1-90|
|00000930| 0d 52 6f 75 74 69 6e 65 | 73 20 66 6f 72 20 41 70 |.Routine|s for Ap|
|00000940| 70 6c 69 63 61 74 69 6f | 6e 73 14 14 31 2d 39 31 |plicatio|ns..1-91|
|00000950| 0d 52 6f 75 74 69 6e 65 | 73 20 66 6f 72 20 43 6f |.Routine|s for Co|
|00000960| 6d 70 6f 6e 65 6e 74 73 | 14 14 31 2d 39 32 0d 41 |mponents|..1-92.A|
|00000970| 70 70 6c 69 63 61 74 69 | 6f 6e 2d 44 65 66 69 6e |pplicati|on-Defin|
|00000980| 65 64 20 52 6f 75 74 69 | 6e 65 73 14 14 31 2d 39 |ed Routi|nes..1-9|
|00000990| 34 0d 41 73 73 65 6d 62 | 6c 79 2d 4c 61 6e 67 75 |4.Assemb|ly-Langu|
|000009a0| 61 67 65 20 53 75 6d 6d | 61 72 79 14 14 31 2d 39 |age Summ|ary..1-9|
|000009b0| 34 0d 54 72 61 70 20 4d | 61 63 72 6f 73 14 14 31 |4.Trap M|acros..1|
|000009c0| 2d 39 34 0d 52 65 73 75 | 6c 74 20 43 6f 64 65 73 |-94.Resu|lt Codes|
|000009d0| 14 14 31 2d 39 35 0d 43 | 6f 6d 70 6f 6e 65 6e 74 |..1-95.C|omponent|
|000009e0| 20 4d 61 6e 61 67 65 72 | 0d 54 68 69 73 20 63 68 | Manager|.This ch|
|000009f0| 61 70 74 65 72 20 64 65 | 73 63 72 69 62 65 73 20 |apter de|scribes |
|00000a00| 68 6f 77 20 79 6f 75 20 | 63 61 6e 20 75 73 65 20 |how you |can use |
|00000a10| 74 68 65 20 43 6f 6d 70 | 6f 6e 65 6e 74 20 4d 61 |the Comp|onent Ma|
|00000a20| 6e 61 67 65 72 20 74 6f | 20 61 6c 6c 6f 77 20 79 |nager to| allow y|
|00000a30| 6f 75 72 20 61 70 70 6c | 69 63 61 74 69 6f 6e 20 |our appl|ication |
|00000a40| 74 6f 20 66 69 6e 64 20 | 61 6e 64 20 75 74 69 6c |to find |and util|
|00000a50| 69 7a 65 20 76 61 72 69 | 6f 75 73 20 73 6f 66 74 |ize vari|ous soft|
|00000a60| 77 61 72 65 20 6f 62 6a | 65 63 74 73 20 28 63 6f |ware obj|ects (co|
|00000a70| 6d 70 6f 6e 65 6e 74 73 | 29 20 61 74 20 72 75 6e |mponents|) at run|
|00000a80| 20 74 69 6d 65 2e 20 49 | 74 20 61 6c 73 6f 20 64 | time. I|t also d|
|00000a90| 69 73 63 75 73 73 65 73 | 20 68 6f 77 20 79 6f 75 |iscusses| how you|
|00000aa0| 20 63 61 6e 20 63 72 65 | 61 74 65 20 79 6f 75 72 | can cre|ate your|
|00000ab0| 20 6f 77 6e 20 63 6f 6d | 70 6f 6e 65 6e 74 73 20 | own com|ponents |
|00000ac0| 61 6e 64 20 68 6f 77 20 | 79 6f 75 20 63 61 6e 20 |and how |you can |
|00000ad0| 75 73 65 20 74 68 65 20 | 43 6f 6d 70 6f 6e 65 6e |use the |Componen|
|00000ae0| 74 20 4d 61 6e 61 67 65 | 72 20 74 6f 20 68 65 6c |t Manage|r to hel|
|00000af0| 70 20 6d 61 6e 61 67 65 | 20 79 6f 75 72 20 63 6f |p manage| your co|
|00000b00| 6d 70 6f 6e 65 6e 74 73 | 2e 20 59 6f 75 20 73 68 |mponents|. You sh|
|00000b10| 6f 75 6c 64 20 72 65 61 | 64 20 74 68 69 73 20 63 |ould rea|d this c|
|00000b20| 68 61 70 74 65 72 20 69 | 66 20 79 6f 75 20 61 72 |hapter i|f you ar|
|00000b30| 65 20 64 65 76 65 6c 6f | 70 69 6e 67 20 61 6e 20 |e develo|ping an |
|00000b40| 61 70 70 6c 69 63 61 74 | 69 6f 6e 20 74 68 61 74 |applicat|ion that|
|00000b50| 20 75 73 65 73 20 63 6f | 6d 70 6f 6e 65 6e 74 73 | uses co|mponents|
|00000b60| 20 6f 72 20 69 66 20 79 | 6f 75 20 70 6c 61 6e 20 | or if y|ou plan |
|00000b70| 74 6f 20 64 65 76 65 6c | 6f 70 20 79 6f 75 72 20 |to devel|op your |
|00000b80| 6f 77 6e 20 63 6f 6d 70 | 6f 6e 65 6e 74 73 2e 0d |own comp|onents..|
|00000b90| 54 68 65 20 72 65 73 74 | 20 6f 66 20 74 68 69 73 |The rest| of this|
|00000ba0| 20 63 68 61 70 74 65 72 | 3a 0d 6e 09 63 6f 6e 74 | chapter|:.n.cont|
|00000bb0| 61 69 6e 73 20 61 20 67 | 65 6e 65 72 61 6c 20 69 |ains a g|eneral i|
|00000bc0| 6e 74 72 6f 64 75 63 74 | 69 6f 6e 20 74 6f 20 63 |ntroduct|ion to c|
|00000bd0| 6f 6d 70 6f 6e 65 6e 74 | 73 20 61 6e 64 20 74 68 |omponent|s and th|
|00000be0| 65 20 66 65 61 74 75 72 | 65 73 20 70 72 6f 76 69 |e featur|es provi|
|00000bf0| 64 65 64 20 62 79 20 74 | 68 65 20 43 6f 6d 70 6f |ded by t|he Compo|
|00000c00| 6e 65 6e 74 20 4d 61 6e | 61 67 65 72 0d 6e 09 64 |nent Man|ager.n.d|
|00000c10| 69 73 63 75 73 73 65 73 | 20 68 6f 77 20 74 6f 20 |iscusses| how to |
|00000c20| 75 73 65 20 74 68 65 20 | 66 61 63 69 6c 69 74 69 |use the |faciliti|
|00000c30| 65 73 20 6f 66 20 74 68 | 65 20 43 6f 6d 70 6f 6e |es of th|e Compon|
|00000c40| 65 6e 74 20 4d 61 6e 61 | 67 65 72 20 74 6f 20 63 |ent Mana|ger to c|
|00000c50| 61 6c 6c 20 63 6f 6d 70 | 6f 6e 65 6e 74 73 20 0d |all comp|onents .|
|00000c60| 6e 09 64 65 73 63 72 69 | 62 65 73 20 68 6f 77 20 |n.descri|bes how |
|00000c70| 74 6f 20 63 72 65 61 74 | 65 20 61 20 63 6f 6d 70 |to creat|e a comp|
|00000c80| 6f 6e 65 6e 74 20 0d 53 | 65 76 65 72 61 6c 20 6f |onent .S|everal o|
|00000c90| 66 20 74 68 65 20 73 65 | 63 74 69 6f 6e 73 20 69 |f the se|ctions i|
|00000ca0| 6e 20 74 68 69 73 20 63 | 68 61 70 74 65 72 20 61 |n this c|hapter a|
|00000cb0| 72 65 20 64 69 76 69 64 | 65 64 20 69 6e 74 6f 20 |re divid|ed into |
|00000cc0| 74 77 6f 20 6d 61 69 6e | 20 74 6f 70 69 63 73 3a |two main| topics:|
|00000cd0| 20 6f 6e 65 20 64 65 73 | 63 72 69 62 65 73 20 68 | one des|cribes h|
|00000ce0| 6f 77 20 61 70 70 6c 69 | 63 61 74 69 6f 6e 73 20 |ow appli|cations |
|00000cf0| 63 61 6e 20 75 73 65 20 | 63 6f 6d 70 6f 6e 65 6e |can use |componen|
|00000d00| 74 73 2c 20 61 6e 64 20 | 6f 6e 65 20 64 65 73 63 |ts, and |one desc|
|00000d10| 72 69 62 65 73 20 68 6f | 77 20 74 6f 20 63 72 65 |ribes ho|w to cre|
|00000d20| 61 74 65 20 79 6f 75 72 | 20 6f 77 6e 20 63 6f 6d |ate your| own com|
|00000d30| 70 6f 6e 65 6e 74 73 2e | 20 49 66 20 79 6f 75 20 |ponents.| If you |
|00000d40| 61 72 65 20 64 65 76 65 | 6c 6f 70 69 6e 67 20 61 |are deve|loping a|
|00000d50| 6e 20 61 70 70 6c 69 63 | 61 74 69 6f 6e 20 74 68 |n applic|ation th|
|00000d60| 61 74 20 75 73 65 73 20 | 63 6f 6d 70 6f 6e 65 6e |at uses |componen|
|00000d70| 74 73 2c 20 79 6f 75 20 | 73 68 6f 75 6c 64 20 66 |ts, you |should f|
|00000d80| 6f 63 75 73 20 6f 6e 20 | 74 68 65 20 6d 61 74 65 |ocus on |the mate|
|00000d90| 72 69 61 6c 20 74 68 61 | 74 20 64 65 73 63 72 69 |rial tha|t descri|
|00000da0| 62 65 73 20 68 6f 77 20 | 74 6f 20 75 73 65 20 65 |bes how |to use e|
|00000db0| 78 69 73 74 69 6e 67 20 | 63 6f 6d 70 6f 6e 65 6e |xisting |componen|
|00000dc0| 74 73 d1 79 6f 75 20 64 | 6f 20 6e 6f 74 20 6e 65 |ts.you d|o not ne|
|00000dd0| 65 64 20 74 6f 20 72 65 | 61 64 20 74 68 65 20 6d |ed to re|ad the m|
|00000de0| 61 74 65 72 69 61 6c 20 | 74 68 61 74 20 64 65 73 |aterial |that des|
|00000df0| 63 72 69 62 65 73 20 68 | 6f 77 20 74 6f 20 63 72 |cribes h|ow to cr|
|00000e00| 65 61 74 65 20 61 20 63 | 6f 6d 70 6f 6e 65 6e 74 |eate a c|omponent|
|00000e10| 2e 20 49 66 20 79 6f 75 | 20 61 72 65 20 64 65 76 |. If you| are dev|
|00000e20| 65 6c 6f 70 69 6e 67 20 | 61 20 63 6f 6d 70 6f 6e |eloping |a compon|
|00000e30| 65 6e 74 2c 20 68 6f 77 | 65 76 65 72 2c 20 79 6f |ent, how|ever, yo|
|00000e40| 75 20 73 68 6f 75 6c 64 | 20 62 65 20 66 61 6d 69 |u should| be fami|
|00000e50| 6c 69 61 72 20 77 69 74 | 68 20 61 6c 6c 20 74 68 |liar wit|h all th|
|00000e60| 65 20 69 6e 66 6f 72 6d | 61 74 69 6f 6e 20 69 6e |e inform|ation in|
|00000e70| 20 74 68 69 73 20 63 68 | 61 70 74 65 72 2e 20 0d | this ch|apter. .|
|00000e80| 46 6f 72 20 69 6e 66 6f | 72 6d 61 74 69 6f 6e 20 |For info|rmation |
|00000e90| 6f 6e 20 61 20 73 70 65 | 63 69 66 69 63 20 63 6f |on a spe|cific co|
|00000ea0| 6d 70 6f 6e 65 6e 74 2c | 20 73 65 65 20 74 68 65 |mponent,| see the|
|00000eb0| 20 64 6f 63 75 6d 65 6e | 74 61 74 69 6f 6e 20 73 | documen|tation s|
|00000ec0| 75 70 70 6c 69 65 64 20 | 77 69 74 68 20 74 68 61 |upplied |with tha|
|00000ed0| 74 20 63 6f 6d 70 6f 6e | 65 6e 74 2e 20 46 6f 72 |t compon|ent. For|
|00000ee0| 20 65 78 61 6d 70 6c 65 | 2c 20 66 6f 72 20 69 6e | example|, for in|
|00000ef0| 66 6f 72 6d 61 74 69 6f | 6e 20 6f 6e 20 74 68 65 |formatio|n on the|
|00000f00| 20 63 6f 6d 70 6f 6e 65 | 6e 74 73 20 74 68 61 74 | compone|nts that|
|00000f10| 20 41 70 70 6c 65 20 73 | 75 70 70 6c 69 65 73 20 | Apple s|upplies |
|00000f20| 77 69 74 68 20 51 75 69 | 63 6b 54 69 6d 65 2c 20 |with Qui|ckTime, |
|00000f30| 73 65 65 20 49 6e 73 69 | 64 65 20 4d 61 63 69 6e |see Insi|de Macin|
|00000f40| 74 6f 73 68 3a 20 51 75 | 69 63 6b 54 69 6d 65 20 |tosh: Qu|ickTime |
|00000f50| 43 6f 6d 70 6f 6e 65 6e | 74 73 2e 0d 0d 49 6e 74 |Componen|ts...Int|
|00000f60| 72 6f 64 75 63 74 69 6f | 6e 20 74 6f 20 43 6f 6d |roductio|n to Com|
|00000f70| 70 6f 6e 65 6e 74 73 0d | 0d 41 20 63 6f 6d 70 6f |ponents.|.A compo|
|00000f80| 6e 65 6e 74 20 69 73 20 | 61 20 70 69 65 63 65 20 |nent is |a piece |
|00000f90| 6f 66 20 63 6f 64 65 20 | 74 68 61 74 20 70 72 6f |of code |that pro|
|00000fa0| 76 69 64 65 73 20 61 20 | 64 65 66 69 6e 65 64 20 |vides a |defined |
|00000fb0| 73 65 74 20 6f 66 20 73 | 65 72 76 69 63 65 73 20 |set of s|ervices |
|00000fc0| 74 6f 20 6f 6e 65 20 6f | 72 20 6d 6f 72 65 20 63 |to one o|r more c|
|00000fd0| 6c 69 65 6e 74 73 2e 20 | 41 70 70 6c 69 63 61 74 |lients. |Applicat|
|00000fe0| 69 6f 6e 73 2c 20 73 79 | 73 74 65 6d 20 65 78 74 |ions, sy|stem ext|
|00000ff0| 65 6e 73 69 6f 6e 73 2c | 20 61 73 20 77 65 6c 6c |ensions,| as well|
|00001000| 20 61 73 20 6f 74 68 65 | 72 20 63 6f 6d 70 6f 6e | as othe|r compon|
|00001010| 65 6e 74 73 2c 20 63 61 | 6e 20 75 73 65 20 74 68 |ents, ca|n use th|
|00001020| 65 20 73 65 72 76 69 63 | 65 73 20 6f 66 20 61 20 |e servic|es of a |
|00001030| 63 6f 6d 70 6f 6e 65 6e | 74 2e 20 41 20 63 6f 6d |componen|t. A com|
|00001040| 70 6f 6e 65 6e 74 20 74 | 79 70 69 63 61 6c 6c 79 |ponent t|ypically|
|00001050| 20 70 72 6f 76 69 64 65 | 73 20 61 20 73 70 65 63 | provide|s a spec|
|00001060| 69 66 69 63 20 74 79 70 | 65 20 6f 66 20 73 65 72 |ific typ|e of ser|
|00001070| 76 69 63 65 20 74 6f 20 | 69 74 73 20 63 6c 69 65 |vice to |its clie|
|00001080| 6e 74 73 2e 20 46 6f 72 | 20 65 78 61 6d 70 6c 65 |nts. For| example|
|00001090| 2c 20 61 20 63 6f 6d 70 | 6f 6e 65 6e 74 20 6d 69 |, a comp|onent mi|
|000010a0| 67 68 74 20 70 72 6f 76 | 69 64 65 20 69 6d 61 67 |ght prov|ide imag|
|000010b0| 65 20 63 6f 6d 70 72 65 | 73 73 69 6f 6e 20 6f 72 |e compre|ssion or|
|000010c0| 20 69 6d 61 67 65 20 64 | 65 63 6f 6d 70 72 65 73 | image d|ecompres|
|000010d0| 73 69 6f 6e 20 63 61 70 | 61 62 69 6c 69 74 69 65 |sion cap|abilitie|
|000010e0| 73 3b 20 61 6e 20 61 70 | 70 6c 69 63 61 74 69 6f |s; an ap|plicatio|
|000010f0| 6e 20 63 6f 75 6c 64 20 | 63 61 6c 6c 20 73 75 63 |n could |call suc|
|00001100| 68 20 61 20 63 6f 6d 70 | 6f 6e 65 6e 74 2c 20 70 |h a comp|onent, p|
|00001110| 72 6f 76 69 64 69 6e 67 | 20 74 68 65 20 69 6d 61 |roviding| the ima|
|00001120| 67 65 20 74 6f 20 63 6f | 6d 70 72 65 73 73 2c 20 |ge to co|mpress, |
|00001130| 61 6e 64 20 74 68 65 20 | 63 6f 6d 70 6f 6e 65 6e |and the |componen|
|00001140| 74 20 63 6f 75 6c 64 20 | 70 65 72 66 6f 72 6d 20 |t could |perform |
|00001150| 74 68 65 20 64 65 73 69 | 72 65 64 20 6f 70 65 72 |the desi|red oper|
|00001160| 61 74 69 6f 6e 20 61 6e | 64 20 72 65 74 75 72 6e |ation an|d return|
|00001170| 20 74 68 65 20 63 6f 6d | 70 72 65 73 73 65 64 20 | the com|pressed |
|00001180| 69 6d 61 67 65 20 74 6f | 20 74 68 65 20 61 70 70 |image to| the app|
|00001190| 6c 69 63 61 74 69 6f 6e | 2e 0d 4d 75 6c 74 69 70 |lication|..Multip|
|000011a0| 6c 65 20 63 6f 6d 70 6f | 6e 65 6e 74 73 20 63 61 |le compo|nents ca|
|000011b0| 6e 20 70 72 6f 76 69 64 | 65 20 74 68 65 20 73 61 |n provid|e the sa|
|000011c0| 6d 65 20 74 79 70 65 20 | 6f 66 20 73 65 72 76 69 |me type |of servi|
|000011d0| 63 65 2e 20 46 6f 72 20 | 65 78 61 6d 70 6c 65 2c |ce. For |example,|
|000011e0| 20 73 65 70 61 72 61 74 | 65 20 63 6f 6d 70 6f 6e | separat|e compon|
|000011f0| 65 6e 74 73 20 6d 69 67 | 68 74 20 65 78 69 73 74 |ents mig|ht exist|
|00001200| 20 74 68 61 74 20 63 61 | 6e 20 63 6f 6d 70 72 65 | that ca|n compre|
|00001210| 73 73 20 61 6e 20 69 6d | 61 67 65 20 62 79 20 32 |ss an im|age by 2|
|00001220| 30 20 70 65 72 63 65 6e | 74 2c 20 34 30 20 70 65 |0 percen|t, 40 pe|
|00001230| 72 63 65 6e 74 2c 20 6f | 72 20 35 30 20 70 65 72 |rcent, o|r 50 per|
|00001240| 63 65 6e 74 2c 20 77 69 | 74 68 20 76 61 72 79 69 |cent, wi|th varyi|
|00001250| 6e 67 20 64 65 67 72 65 | 65 73 20 6f 66 20 66 69 |ng degre|es of fi|
|00001260| 64 65 6c 69 74 79 2e 20 | 41 6c 6c 20 63 6f 6d 70 |delity. |All comp|
|00001270| 6f 6e 65 6e 74 73 20 6f | 66 20 74 68 65 20 73 61 |onents o|f the sa|
|00001280| 6d 65 20 74 79 70 65 20 | 6d 75 73 74 20 73 75 70 |me type |must sup|
|00001290| 70 6f 72 74 20 74 68 65 | 20 73 61 6d 65 20 62 61 |port the| same ba|
|000012a0| 73 69 63 20 69 6e 74 65 | 72 66 61 63 65 2e 20 54 |sic inte|rface. T|
|000012b0| 68 69 73 20 61 6c 6c 6f | 77 73 20 79 6f 75 72 20 |his allo|ws your |
|000012c0| 61 70 70 6c 69 63 61 74 | 69 6f 6e 20 74 6f 20 75 |applicat|ion to u|
|000012d0| 73 65 20 74 68 65 20 73 | 61 6d 65 20 69 6e 74 65 |se the s|ame inte|
|000012e0| 72 66 61 63 65 20 66 6f | 72 20 61 6e 79 20 67 69 |rface fo|r any gi|
|000012f0| 76 65 6e 20 74 79 70 65 | 20 6f 66 20 63 6f 6d 70 |ven type| of comp|
|00001300| 6f 6e 65 6e 74 20 61 6e | 64 20 67 65 74 20 74 68 |onent an|d get th|
|00001310| 65 20 73 61 6d 65 20 74 | 79 70 65 20 6f 66 20 73 |e same t|ype of s|
|00001320| 65 72 76 69 63 65 2c 20 | 79 65 74 20 61 6c 6c 6f |ervice, |yet allo|
|00001330| 77 73 20 79 6f 75 72 20 | 61 70 70 6c 69 63 61 74 |ws your |applicat|
|00001340| 69 6f 6e 20 74 6f 20 6f | 62 74 61 69 6e 20 64 69 |ion to o|btain di|
|00001350| 66 66 65 72 65 6e 74 20 | 6c 65 76 65 6c 73 20 6f |fferent |levels o|
|00001360| 66 20 73 65 72 76 69 63 | 65 2e 20 0d 54 68 65 20 |f servic|e. .The |
|00001370| 43 6f 6d 70 6f 6e 65 6e | 74 20 4d 61 6e 61 67 65 |Componen|t Manage|
|00001380| 72 20 70 72 6f 76 69 64 | 65 73 20 61 63 63 65 73 |r provid|es acces|
|00001390| 73 20 74 6f 20 63 6f 6d | 70 6f 6e 65 6e 74 73 20 |s to com|ponents |
|000013a0| 61 6e 64 20 6d 61 6e 61 | 67 65 73 20 74 68 65 6d |and mana|ges them|
|000013b0| 20 62 79 2c 20 66 6f 72 | 20 65 78 61 6d 70 6c 65 | by, for| example|
|000013c0| 2c 20 6b 65 65 70 69 6e | 67 20 74 72 61 63 6b 20 |, keepin|g track |
|000013d0| 6f 66 20 74 68 65 20 63 | 75 72 72 65 6e 74 6c 79 |of the c|urrently|
|000013e0| 20 61 76 61 69 6c 61 62 | 6c 65 20 63 6f 6d 70 6f | availab|le compo|
|000013f0| 6e 65 6e 74 73 20 61 6e | 64 20 72 6f 75 74 69 6e |nents an|d routin|
|00001400| 67 20 72 65 71 75 65 73 | 74 73 20 74 6f 20 74 68 |g reques|ts to th|
|00001410| 65 20 61 70 70 72 6f 70 | 72 69 61 74 65 20 63 6f |e approp|riate co|
|00001420| 6d 70 6f 6e 65 6e 74 2e | 0d 54 68 65 20 43 6f 6d |mponent.|.The Com|
|00001430| 70 6f 6e 65 6e 74 20 4d | 61 6e 61 67 65 72 20 63 |ponent M|anager c|
|00001440| 6c 61 73 73 69 66 69 65 | 73 20 63 6f 6d 70 6f 6e |lassifie|s compon|
|00001450| 65 6e 74 73 20 62 79 20 | 74 68 72 65 65 20 6d 61 |ents by |three ma|
|00001460| 69 6e 20 63 72 69 74 65 | 72 69 61 3a 20 74 68 65 |in crite|ria: the|
|00001470| 20 74 79 70 65 20 6f 66 | 20 73 65 72 76 69 63 65 | type of| service|
|00001480| 20 70 72 6f 76 69 64 65 | 64 2c 20 74 68 65 20 6c | provide|d, the l|
|00001490| 65 76 65 6c 20 6f 66 20 | 73 65 72 76 69 63 65 20 |evel of |service |
|000014a0| 70 72 6f 76 69 64 65 64 | 2c 20 61 6e 64 20 74 68 |provided|, and th|
|000014b0| 65 20 63 6f 6d 70 6f 6e | 65 6e 74 20 6d 61 6e 75 |e compon|ent manu|
|000014c0| 66 61 63 74 75 72 65 72 | 2e 20 54 68 65 20 43 6f |facturer|. The Co|
|000014d0| 6d 70 6f 6e 65 6e 74 20 | 4d 61 6e 61 67 65 72 20 |mponent |Manager |
|000014e0| 75 73 65 73 20 61 20 63 | 6f 6d 70 6f 6e 65 6e 74 |uses a c|omponent|
|000014f0| 20 74 79 70 65 20 74 6f | 20 69 64 65 6e 74 69 66 | type to| identif|
|00001500| 79 20 74 68 65 20 74 79 | 70 65 20 6f 66 20 73 65 |y the ty|pe of se|
|00001510| 72 76 69 63 65 20 70 72 | 6f 76 69 64 65 64 20 62 |rvice pr|ovided b|
|00001520| 79 20 61 20 63 6f 6d 70 | 6f 6e 65 6e 74 2e 20 4c |y a comp|onent. L|
|00001530| 69 6b 65 20 72 65 73 6f | 75 72 63 65 20 74 79 70 |ike reso|urce typ|
|00001540| 65 73 2c 20 61 20 63 6f | 6d 70 6f 6e 65 6e 74 20 |es, a co|mponent |
|00001550| 74 79 70 65 20 69 73 20 | 61 20 73 65 71 75 65 6e |type is |a sequen|
|00001560| 63 65 20 6f 66 20 66 6f | 75 72 20 63 68 61 72 61 |ce of fo|ur chara|
|00001570| 63 74 65 72 73 2e 20 41 | 6c 6c 20 63 6f 6d 70 6f |cters. A|ll compo|
|00001580| 6e 65 6e 74 73 20 6f 66 | 20 74 68 65 20 73 61 6d |nents of| the sam|
|00001590| 65 20 63 6f 6d 70 6f 6e | 65 6e 74 20 74 79 70 65 |e compon|ent type|
|000015a0| 20 70 72 6f 76 69 64 65 | 20 74 68 65 20 73 61 6d | provide| the sam|
|000015b0| 65 20 74 79 70 65 20 6f | 66 20 73 65 72 76 69 63 |e type o|f servic|
|000015c0| 65 73 20 61 6e 64 20 73 | 75 70 70 6f 72 74 20 61 |es and s|upport a|
|000015d0| 20 63 6f 6d 6d 6f 6e 20 | 61 70 70 6c 69 63 61 74 | common |applicat|
|000015e0| 69 6f 6e 20 69 6e 74 65 | 72 66 61 63 65 2e 20 46 |ion inte|rface. F|
|000015f0| 6f 72 20 65 78 61 6d 70 | 6c 65 2c 20 61 6c 6c 20 |or examp|le, all |
|00001600| 69 6d 61 67 65 20 63 6f | 6d 70 72 65 73 73 6f 72 |image co|mpressor|
|00001610| 20 63 6f 6d 70 6f 6e 65 | 6e 74 73 20 68 61 76 65 | compone|nts have|
|00001620| 20 61 20 63 6f 6d 70 6f | 6e 65 6e 74 20 74 79 70 | a compo|nent typ|
|00001630| 65 20 6f 66 20 27 69 6d | 63 6f 27 2e 20 4f 74 68 |e of 'im|co'. Oth|
|00001640| 65 72 20 74 79 70 65 73 | 20 6f 66 20 63 6f 6d 70 |er types| of comp|
|00001650| 6f 6e 65 6e 74 73 20 69 | 6e 63 6c 75 64 65 20 76 |onents i|nclude v|
|00001660| 69 64 65 6f 20 64 69 67 | 69 74 69 7a 65 72 73 2c |ideo dig|itizers,|
|00001670| 20 74 69 6d 69 6e 67 20 | 73 6f 75 72 63 65 73 2c | timing |sources,|
|00001680| 20 6d 6f 76 69 65 20 63 | 6f 6e 74 72 6f 6c 6c 65 | movie c|ontrolle|
|00001690| 72 73 2c 20 61 6e 64 20 | 73 65 71 75 65 6e 63 65 |rs, and |sequence|
|000016a0| 20 63 61 70 74 75 72 65 | 72 73 2e 20 20 0d 4e 6f | capture|rs. .No|
|000016b0| 74 65 0d 43 6f 6d 70 6f | 6e 65 6e 74 20 74 79 70 |te.Compo|nent typ|
|000016c0| 65 73 20 63 6f 6e 73 69 | 73 74 69 6e 67 20 6f 66 |es consi|sting of|
|000016d0| 20 6f 6e 6c 79 20 6c 6f | 77 65 72 63 61 73 65 20 | only lo|wercase |
|000016e0| 63 68 61 72 61 63 74 65 | 72 73 20 61 72 65 20 72 |characte|rs are r|
|000016f0| 65 73 65 72 76 65 64 20 | 66 6f 72 20 64 65 66 69 |eserved |for defi|
|00001700| 6e 69 74 69 6f 6e 20 62 | 79 20 41 70 70 6c 65 2e |nition b|y Apple.|
|00001710| 20 59 6f 75 20 63 61 6e | 20 64 65 66 69 6e 65 20 | You can| define |
|00001720| 63 6f 6d 70 6f 6e 65 6e | 74 20 74 79 70 65 73 20 |componen|t types |
|00001730| 75 73 69 6e 67 20 6f 74 | 68 65 72 20 63 6f 6d 62 |using ot|her comb|
|00001740| 69 6e 61 74 69 6f 6e 73 | 20 6f 66 20 63 68 61 72 |inations| of char|
|00001750| 61 63 74 65 72 73 2c 20 | 62 75 74 20 79 6f 75 20 |acters, |but you |
|00001760| 6d 75 73 74 20 72 65 67 | 69 73 74 65 72 20 61 6e |must reg|ister an|
|00001770| 79 20 6e 65 77 20 63 6f | 6d 70 6f 6e 65 6e 74 20 |y new co|mponent |
|00001780| 74 79 70 65 73 20 77 69 | 74 68 20 41 70 70 6c 65 |types wi|th Apple|
|00001790| d5 73 20 43 6f 6d 70 6f | 6e 65 6e 74 20 52 65 67 |.s Compo|nent Reg|
|000017a0| 69 73 74 72 79 20 47 72 | 6f 75 70 20 28 41 70 70 |istry Gr|oup (App|
|000017b0| 6c 65 4c 69 6e 6b 20 52 | 45 47 49 53 54 52 59 29 |leLink R|EGISTRY)|
|000017c0| 2e 20 13 75 0d 54 68 65 | 20 43 6f 6d 70 6f 6e 65 |. .u.The| Compone|
|000017d0| 6e 74 20 4d 61 6e 61 67 | 65 72 20 61 6c 6c 6f 77 |nt Manag|er allow|
|000017e0| 73 20 63 6f 6d 70 6f 6e | 65 6e 74 73 20 74 6f 20 |s compon|ents to |
|000017f0| 69 64 65 6e 74 69 66 79 | 20 76 61 72 69 61 74 69 |identify| variati|
|00001800| 6f 6e 73 20 6f 6e 20 74 | 68 65 20 62 61 73 69 63 |ons on t|he basic|
|00001810| 20 69 6e 74 65 72 66 61 | 63 65 20 74 68 65 79 20 | interfa|ce they |
|00001820| 6d 75 73 74 20 73 75 70 | 70 6f 72 74 20 62 79 20 |must sup|port by |
|00001830| 73 70 65 63 69 66 79 69 | 6e 67 20 61 20 66 6f 75 |specifyi|ng a fou|
|00001840| 72 2d 63 68 61 72 61 63 | 74 65 72 20 63 6f 6d 70 |r-charac|ter comp|
|00001850| 6f 6e 65 6e 74 20 73 75 | 62 74 79 70 65 2e 20 54 |onent su|btype. T|
|00001860| 68 65 20 76 61 6c 75 65 | 20 6f 66 20 74 68 65 20 |he value| of the |
|00001870| 63 6f 6d 70 6f 6e 65 6e | 74 20 73 75 62 74 79 70 |componen|t subtyp|
|00001880| 65 20 69 73 20 6d 65 61 | 6e 69 6e 67 66 75 6c 20 |e is mea|ningful |
|00001890| 6f 6e 6c 79 20 69 6e 20 | 74 68 65 20 63 6f 6e 74 |only in |the cont|
|000018a0| 65 78 74 20 6f 66 20 61 | 20 67 69 76 65 6e 20 63 |ext of a| given c|
|000018b0| 6f 6d 70 6f 6e 65 6e 74 | 20 74 79 70 65 2e 20 46 |omponent| type. F|
|000018c0| 6f 72 20 65 78 61 6d 70 | 6c 65 2c 20 69 6d 61 67 |or examp|le, imag|
|000018d0| 65 20 63 6f 6d 70 72 65 | 73 73 6f 72 20 63 6f 6d |e compre|ssor com|
|000018e0| 70 6f 6e 65 6e 74 73 20 | 75 73 65 20 74 68 65 20 |ponents |use the |
|000018f0| 63 6f 6d 70 6f 6e 65 6e | 74 20 73 75 62 74 79 70 |componen|t subtyp|
|00001900| 65 20 74 6f 20 73 70 65 | 63 69 66 79 20 74 68 65 |e to spe|cify the|
|00001910| 20 63 6f 6d 70 72 65 73 | 73 69 6f 6e 20 61 6c 67 | compres|sion alg|
|00001920| 6f 72 69 74 68 6d 20 73 | 75 70 70 6f 72 74 65 64 |orithm s|upported|
|00001930| 20 62 79 20 74 68 65 20 | 63 6f 6d 70 6f 6e 65 6e | by the |componen|
|00001940| 74 2e 0d 41 6c 6c 20 63 | 6f 6d 70 6f 6e 65 6e 74 |t..All c|omponent|
|00001950| 73 20 6f 66 20 61 20 67 | 69 76 65 6e 20 74 79 70 |s of a g|iven typ|
|00001960| 65 2d 73 75 62 74 79 70 | 65 20 63 6f 6d 62 69 6e |e-subtyp|e combin|
|00001970| 61 74 69 6f 6e 20 6d 75 | 73 74 20 73 75 70 70 6f |ation mu|st suppo|
|00001980| 72 74 20 61 20 63 6f 6d | 6d 6f 6e 20 61 70 70 6c |rt a com|mon appl|
|00001990| 69 63 61 74 69 6f 6e 20 | 69 6e 74 65 72 66 61 63 |ication |interfac|
|000019a0| 65 2e 20 48 6f 77 65 76 | 65 72 2c 20 63 6f 6d 70 |e. Howev|er, comp|
|000019b0| 6f 6e 65 6e 74 73 20 74 | 68 61 74 20 73 68 61 72 |onents t|hat shar|
|000019c0| 65 20 61 20 74 79 70 65 | 2d 73 75 62 74 79 70 65 |e a type|-subtype|
|000019d0| 20 73 70 65 63 69 66 69 | 63 61 74 69 6f 6e 20 6d | specifi|cation m|
|000019e0| 61 79 20 73 75 70 70 6f | 72 74 20 72 6f 75 74 69 |ay suppo|rt routi|
|000019f0| 6e 65 73 20 74 68 61 74 | 20 61 72 65 20 6e 6f 74 |nes that| are not|
|00001a00| 20 70 61 72 74 20 6f 66 | 20 74 68 65 20 62 61 73 | part of| the bas|
|00001a10| 69 63 20 69 6e 74 65 72 | 66 61 63 65 20 64 65 66 |ic inter|face def|
|00001a20| 69 6e 65 64 20 66 6f 72 | 20 74 68 65 69 72 20 74 |ined for| their t|
|00001a30| 79 70 65 2e 20 49 6e 20 | 74 68 69 73 20 6d 61 6e |ype. In |this man|
|00001a40| 6e 65 72 2c 20 63 6f 6d | 70 6f 6e 65 6e 74 73 20 |ner, com|ponents |
|00001a50| 63 61 6e 20 70 72 6f 76 | 69 64 65 20 65 6e 68 61 |can prov|ide enha|
|00001a60| 6e 63 65 64 20 73 65 72 | 76 69 63 65 73 20 74 6f |nced ser|vices to|
|00001a70| 20 63 6c 69 65 6e 74 20 | 61 70 70 6c 69 63 61 74 | client |applicat|
|00001a80| 69 6f 6e 73 20 77 68 69 | 6c 65 20 73 74 69 6c 6c |ions whi|le still|
|00001a90| 20 73 75 70 70 6f 72 74 | 69 6e 67 20 74 68 65 20 | support|ing the |
|00001aa0| 62 61 73 69 63 20 61 70 | 70 6c 69 63 61 74 69 6f |basic ap|plicatio|
|00001ab0| 6e 20 69 6e 74 65 72 66 | 61 63 65 2e 0d 46 69 6e |n interf|ace..Fin|
|00001ac0| 61 6c 6c 79 2c 20 74 68 | 65 20 43 6f 6d 70 6f 6e |ally, th|e Compon|
|00001ad0| 65 6e 74 20 4d 61 6e 61 | 67 65 72 20 61 6c 6c 6f |ent Mana|ger allo|
|00001ae0| 77 73 20 63 6f 6d 70 6f | 6e 65 6e 74 73 20 74 6f |ws compo|nents to|
|00001af0| 20 68 61 76 65 20 61 20 | 66 6f 75 72 2d 63 68 61 | have a |four-cha|
|00001b00| 72 61 63 74 65 72 20 6d | 61 6e 75 66 61 63 74 75 |racter m|anufactu|
|00001b10| 72 65 72 20 63 6f 64 65 | 20 74 68 61 74 20 69 64 |rer code| that id|
|00001b20| 65 6e 74 69 66 69 65 73 | 20 74 68 65 20 6d 61 6e |entifies| the man|
|00001b30| 75 66 61 63 74 75 72 65 | 72 20 6f 66 20 74 68 65 |ufacture|r of the|
|00001b40| 20 63 6f 6d 70 6f 6e 65 | 6e 74 2e 20 59 6f 75 20 | compone|nt. You |
|00001b50| 6d 75 73 74 20 72 65 67 | 69 73 74 65 72 20 79 6f |must reg|ister yo|
|00001b60| 75 72 20 63 6f 6d 70 6f | 6e 65 6e 74 20 77 69 74 |ur compo|nent wit|
|00001b70| 68 20 41 70 70 6c 65 d5 | 73 20 43 6f 6d 70 6f 6e |h Apple.|s Compon|
|00001b80| 65 6e 74 20 52 65 67 69 | 73 74 72 79 20 47 72 6f |ent Regi|stry Gro|
|00001b90| 75 70 20 74 6f 20 72 65 | 63 65 69 76 65 20 61 20 |up to re|ceive a |
|00001ba0| 6d 61 6e 75 66 61 63 74 | 75 72 65 72 20 63 6f 64 |manufact|urer cod|
|00001bb0| 65 20 66 6f 72 20 79 6f | 75 72 20 63 6f 6d 70 6f |e for yo|ur compo|
|00001bc0| 6e 65 6e 74 2e 20 54 68 | 65 20 6d 61 6e 75 66 61 |nent. Th|e manufa|
|00001bd0| 63 74 75 72 65 72 20 63 | 6f 64 65 20 61 6c 6c 6f |cturer c|ode allo|
|00001be0| 77 73 20 61 70 70 6c 69 | 63 61 74 69 6f 6e 73 20 |ws appli|cations |
|00001bf0| 74 6f 20 66 75 72 74 68 | 65 72 20 64 69 73 74 69 |to furth|er disti|
|00001c00| 6e 67 75 69 73 68 20 62 | 65 74 77 65 65 6e 20 63 |nguish b|etween c|
|00001c10| 6f 6d 70 6f 6e 65 6e 74 | 73 20 6f 66 20 74 68 65 |omponent|s of the|
|00001c20| 20 73 61 6d 65 20 74 79 | 70 65 2d 73 75 62 74 79 | same ty|pe-subty|
|00001c30| 70 65 2e 0d 0d 41 62 6f | 75 74 20 74 68 65 20 43 |pe...Abo|ut the C|
|00001c40| 6f 6d 70 6f 6e 65 6e 74 | 20 4d 61 6e 61 67 65 72 |omponent| Manager|
|00001c50| 0d 0d 54 68 65 20 43 6f | 6d 70 6f 6e 65 6e 74 20 |..The Co|mponent |
|00001c60| 4d 61 6e 61 67 65 72 20 | 70 72 6f 76 69 64 65 73 |Manager |provides|
|00001c70| 20 73 65 72 76 69 63 65 | 73 20 74 68 61 74 20 61 | service|s that a|
|00001c80| 6c 6c 6f 77 20 61 70 70 | 6c 69 63 61 74 69 6f 6e |llow app|lication|
|00001c90| 73 20 74 6f 20 6f 62 74 | 61 69 6e 20 72 75 6e 2d |s to obt|ain run-|
|00001ca0| 74 69 6d 65 20 6c 6f 63 | 61 74 69 6f 6e 20 6f 66 |time loc|ation of|
|00001cb0| 20 61 6e 64 20 61 63 63 | 65 73 73 20 74 6f 20 66 | and acc|ess to f|
|00001cc0| 75 6e 63 74 69 6f 6e 61 | 6c 20 6f 62 6a 65 63 74 |unctiona|l object|
|00001cd0| 73 20 28 69 6e 20 6d 75 | 63 68 20 74 68 65 20 73 |s (in mu|ch the s|
|00001ce0| 61 6d 65 20 77 61 79 20 | 74 68 61 74 20 74 68 65 |ame way |that the|
|00001cf0| 20 52 65 73 6f 75 72 63 | 65 20 4d 61 6e 61 67 65 | Resourc|e Manage|
|00001d00| 72 20 61 6c 6c 6f 77 73 | 20 61 70 70 6c 69 63 61 |r allows| applica|
|00001d10| 74 69 6f 6e 73 20 74 68 | 61 74 20 61 72 65 20 72 |tions th|at are r|
|00001d20| 75 6e 6e 69 6e 67 20 74 | 6f 20 61 63 63 65 73 73 |unning t|o access|
|00001d30| 20 64 61 74 61 20 6f 62 | 6a 65 63 74 73 20 64 79 | data ob|jects dy|
|00001d40| 6e 61 6d 69 63 61 6c 6c | 79 29 2e 20 0d 54 68 65 |namicall|y). .The|
|00001d50| 20 43 6f 6d 70 6f 6e 65 | 6e 74 20 4d 61 6e 61 67 | Compone|nt Manag|
|00001d60| 65 72 20 63 72 65 61 74 | 65 73 20 61 6e 20 69 6e |er creat|es an in|
|00001d70| 74 65 72 66 61 63 65 20 | 62 65 74 77 65 65 6e 20 |terface |between |
|00001d80| 63 6f 6d 70 6f 6e 65 6e | 74 73 20 61 6e 64 20 63 |componen|ts and c|
|00001d90| 6c 69 65 6e 74 73 2c 20 | 77 68 69 63 68 20 63 61 |lients, |which ca|
|00001da0| 6e 20 62 65 20 61 70 70 | 6c 69 63 61 74 69 6f 6e |n be app|lication|
|00001db0| 73 2c 20 6f 74 68 65 72 | 20 63 6f 6d 70 6f 6e 65 |s, other| compone|
|00001dc0| 6e 74 73 2c 20 73 79 73 | 74 65 6d 20 65 78 74 65 |nts, sys|tem exte|
|00001dd0| 6e 73 69 6f 6e 73 2c 20 | 61 6e 64 20 73 6f 20 6f |nsions, |and so o|
|00001de0| 6e 2e 20 49 6e 73 74 65 | 61 64 20 6f 66 20 69 6d |n. Inste|ad of im|
|00001df0| 70 6c 65 6d 65 6e 74 69 | 6e 67 20 73 75 70 70 6f |plementi|ng suppo|
|00001e00| 72 74 20 66 6f 72 20 61 | 20 70 61 72 74 69 63 75 |rt for a| particu|
|00001e10| 6c 61 72 20 64 61 74 61 | 20 66 6f 72 6d 61 74 2c |lar data| format,|
|00001e20| 20 70 72 6f 74 6f 63 6f | 6c 2c 20 6f 72 20 6d 6f | protoco|l, or mo|
|00001e30| 64 65 6c 20 6f 66 20 61 | 20 64 65 76 69 63 65 2c |del of a| device,|
|00001e40| 20 79 6f 75 20 63 61 6e | 20 75 73 65 20 61 20 73 | you can| use a s|
|00001e50| 74 61 6e 64 61 72 64 20 | 69 6e 74 65 72 66 61 63 |tandard |interfac|
|00001e60| 65 20 74 68 72 6f 75 67 | 68 20 77 68 69 63 68 20 |e throug|h which |
|00001e70| 79 6f 75 72 20 61 70 70 | 6c 69 63 61 74 69 6f 6e |your app|lication|
|00001e80| 20 63 6f 6d 6d 75 6e 69 | 63 61 74 65 73 20 77 69 | communi|cates wi|
|00001e90| 74 68 20 61 6c 6c 20 63 | 6f 6d 70 6f 6e 65 6e 74 |th all c|omponent|
|00001ea0| 73 20 6f 66 20 61 20 67 | 69 76 65 6e 20 74 79 70 |s of a g|iven typ|
|00001eb0| 65 2e 20 59 6f 75 20 63 | 61 6e 20 74 68 65 6e 20 |e. You c|an then |
|00001ec0| 75 73 65 20 74 68 65 20 | 43 6f 6d 70 6f 6e 65 6e |use the |Componen|
|00001ed0| 74 20 4d 61 6e 61 67 65 | 72 20 74 6f 20 6c 6f 63 |t Manage|r to loc|
|00001ee0| 61 74 65 20 61 6e 64 20 | 63 6f 6d 6d 75 6e 69 63 |ate and |communic|
|00001ef0| 61 74 65 20 77 69 74 68 | 20 63 6f 6d 70 6f 6e 65 |ate with| compone|
|00001f00| 6e 74 73 20 6f 66 20 74 | 68 61 74 20 74 79 70 65 |nts of t|hat type|
|00001f10| 2e 20 54 68 6f 73 65 20 | 63 6f 6d 70 6f 6e 65 6e |. Those |componen|
|00001f20| 74 73 2c 20 69 6e 20 74 | 75 72 6e 2c 20 70 72 6f |ts, in t|urn, pro|
|00001f30| 76 69 64 65 20 74 68 65 | 20 61 70 70 72 6f 70 72 |vide the| appropr|
|00001f40| 69 61 74 65 20 73 65 72 | 76 69 63 65 73 20 74 6f |iate ser|vices to|
|00001f50| 20 79 6f 75 72 20 63 6c | 69 65 6e 74 20 61 70 70 | your cl|ient app|
|00001f60| 6c 69 63 61 74 69 6f 6e | 2e 0d 47 69 76 65 6e 20 |lication|..Given |
|00001f70| 61 20 70 61 72 74 69 63 | 75 6c 61 72 20 63 6f 6d |a partic|ular com|
|00001f80| 70 6f 6e 65 6e 74 20 74 | 79 70 65 2c 20 74 68 65 |ponent t|ype, the|
|00001f90| 20 43 6f 6d 70 6f 6e 65 | 6e 74 20 4d 61 6e 61 67 | Compone|nt Manag|
|00001fa0| 65 72 20 63 61 6e 20 6c | 6f 63 61 74 65 20 61 6e |er can l|ocate an|
|00001fb0| 64 20 71 75 65 72 79 20 | 61 6c 6c 20 63 6f 6d 70 |d query |all comp|
|00001fc0| 6f 6e 65 6e 74 73 20 6f | 66 20 74 68 61 74 20 74 |onents o|f that t|
|00001fd0| 79 70 65 2e 20 59 6f 75 | 20 63 61 6e 20 66 69 6e |ype. You| can fin|
|00001fe0| 64 20 6f 75 74 20 68 6f | 77 20 6d 61 6e 79 20 63 |d out ho|w many c|
|00001ff0| 6f 6d 70 6f 6e 65 6e 74 | 73 20 6f 66 20 61 20 73 |omponent|s of a s|
|00002000| 70 65 63 69 66 69 63 20 | 74 79 70 65 20 61 72 65 |pecific |type are|
|00002010| 20 61 76 61 69 6c 61 62 | 6c 65 20 61 6e 64 20 79 | availab|le and y|
|00002020| 6f 75 20 63 61 6e 20 67 | 65 74 20 66 75 72 74 68 |ou can g|et furth|
|00002030| 65 72 20 64 65 74 61 69 | 6c 73 20 61 62 6f 75 74 |er detai|ls about|
|00002040| 20 61 20 63 6f 6d 70 6f | 6e 65 6e 74 d5 73 20 63 | a compo|nent.s c|
|00002050| 61 70 61 62 69 6c 69 74 | 69 65 73 20 77 69 74 68 |apabilit|ies with|
|00002060| 6f 75 74 20 68 61 76 69 | 6e 67 20 74 6f 20 6f 70 |out havi|ng to op|
|00002070| 65 6e 20 69 74 20 66 69 | 72 73 74 2e 20 46 6f 72 |en it fi|rst. For|
|00002080| 20 65 61 63 68 20 63 6f | 6d 70 6f 6e 65 6e 74 2c | each co|mponent,|
|00002090| 20 74 68 65 20 43 6f 6d | 70 6f 6e 65 6e 74 20 4d | the Com|ponent M|
|000020a0| 61 6e 61 67 65 72 20 6b | 65 65 70 73 20 74 72 61 |anager k|eeps tra|
|000020b0| 63 6b 20 6f 66 20 6d 61 | 6e 79 20 63 68 61 72 61 |ck of ma|ny chara|
|000020c0| 63 74 65 72 69 73 74 69 | 63 73 2c 20 69 6e 63 6c |cteristi|cs, incl|
|000020d0| 75 64 69 6e 67 20 69 74 | 73 20 6e 61 6d 65 2c 20 |uding it|s name, |
|000020e0| 69 63 6f 6e 2c 20 61 6e | 64 20 69 6e 66 6f 72 6d |icon, an|d inform|
|000020f0| 61 74 69 6f 6e 20 73 74 | 72 69 6e 67 2e 0d 46 6f |ation st|ring..Fo|
|00002100| 72 20 65 78 61 6d 70 6c | 65 2c 20 63 6f 6d 70 6f |r exampl|e, compo|
|00002110| 6e 65 6e 74 73 20 6f 66 | 20 74 79 70 65 20 27 69 |nents of| type 'i|
|00002120| 6d 64 63 27 20 70 72 6f | 76 69 64 65 20 69 6d 61 |mdc' pro|vide ima|
|00002130| 67 65 20 64 65 63 6f 6d | 70 72 65 73 73 69 6f 6e |ge decom|pression|
|00002140| 20 73 65 72 76 69 63 65 | 73 2e 20 41 6c 6c 20 63 | service|s. All c|
|00002150| 6f 6d 70 6f 6e 65 6e 74 | 73 20 6f 66 20 74 79 70 |omponent|s of typ|
|00002160| 65 20 27 69 6d 64 63 27 | 20 73 68 61 72 65 20 61 |e 'imdc'| share a|
|00002170| 20 63 6f 6d 6d 6f 6e 20 | 61 70 70 6c 69 63 61 74 | common |applicat|
|00002180| 69 6f 6e 20 69 6e 74 65 | 72 66 61 63 65 2c 20 62 |ion inte|rface, b|
|00002190| 75 74 20 65 61 63 68 20 | 69 6d 61 67 65 20 64 65 |ut each |image de|
|000021a0| 63 6f 6d 70 72 65 73 73 | 6f 72 20 63 6f 6d 70 6f |compress|or compo|
|000021b0| 6e 65 6e 74 20 6d 61 79 | 20 73 75 70 70 6f 72 74 |nent may| support|
|000021c0| 20 61 20 75 6e 69 71 75 | 65 20 63 6f 6d 70 72 65 | a uniqu|e compre|
|000021d0| 73 73 69 6f 6e 20 74 65 | 63 68 6e 69 71 75 65 20 |ssion te|chnique |
|000021e0| 6f 72 20 74 61 6b 65 20 | 61 64 76 61 6e 74 61 67 |or take |advantag|
|000021f0| 65 20 6f 66 20 61 20 73 | 70 65 63 69 61 6c 20 68 |e of a s|pecial h|
|00002200| 61 72 64 77 61 72 65 20 | 69 6d 70 6c 65 6d 65 6e |ardware |implemen|
|00002210| 74 61 74 69 6f 6e 2e 20 | 49 6e 64 69 76 69 64 75 |tation. |Individu|
|00002220| 61 6c 20 63 6f 6d 70 6f | 6e 65 6e 74 73 20 6d 61 |al compo|nents ma|
|00002230| 79 20 73 75 70 70 6f 72 | 74 20 61 64 64 69 74 69 |y suppor|t additi|
|00002240| 6f 6e 73 20 74 6f 20 74 | 68 65 20 64 65 66 69 6e |ons to t|he defin|
|00002250| 65 64 20 61 70 70 6c 69 | 63 61 74 69 6f 6e 20 69 |ed appli|cation i|
|00002260| 6e 74 65 72 66 61 63 65 | 2c 20 61 73 20 6c 6f 6e |nterface|, as lon|
|00002270| 67 20 61 73 20 74 68 65 | 79 20 73 75 70 70 6f 72 |g as the|y suppor|
|00002280| 74 20 74 68 65 20 63 6f | 6d 6d 6f 6e 20 72 6f 75 |t the co|mmon rou|
|00002290| 74 69 6e 65 73 2e 20 41 | 6e 79 20 61 6c 67 6f 72 |tines. A|ny algor|
|000022a0| 69 74 68 6d 2d 64 65 70 | 65 6e 64 65 6e 74 20 6f |ithm-dep|endent o|
|000022b0| 72 20 69 6d 70 6c 65 6d | 65 6e 74 61 74 69 6f 6e |r implem|entation|
|000022c0| 2d 64 65 70 65 6e 64 65 | 6e 74 20 76 61 72 69 61 |-depende|nt varia|
|000022d0| 74 69 6f 6e 73 20 6f 66 | 20 74 68 65 20 67 65 6e |tions of| the gen|
|000022e0| 65 72 61 6c 20 64 65 63 | 6f 6d 70 72 65 73 73 69 |eral dec|ompressi|
|000022f0| 6f 6e 20 69 6e 74 65 72 | 66 61 63 65 20 63 61 6e |on inter|face can|
|00002300| 20 62 65 20 69 6d 70 6c | 65 6d 65 6e 74 65 64 20 | be impl|emented |
|00002310| 62 79 20 65 61 63 68 20 | 27 69 6d 64 63 27 20 63 |by each |'imdc' c|
|00002320| 6f 6d 70 6f 6e 65 6e 74 | 20 61 73 20 65 78 74 65 |omponent| as exte|
|00002330| 6e 73 69 6f 6e 73 20 74 | 6f 20 74 68 65 20 62 61 |nsions t|o the ba|
|00002340| 73 69 63 20 69 6e 74 65 | 72 66 61 63 65 2e 20 0d |sic inte|rface. .|
|00002350| 46 69 67 75 72 65 20 31 | 2d 31 20 73 68 6f 77 73 |Figure 1|-1 shows|
|00002360| 20 74 68 65 20 72 65 6c | 61 74 69 6f 6e 73 68 69 | the rel|ationshi|
|00002370| 70 20 62 65 74 77 65 65 | 6e 20 61 6e 20 61 70 70 |p betwee|n an app|
|00002380| 6c 69 63 61 74 69 6f 6e | 2c 20 74 68 65 20 43 6f |lication|, the Co|
|00002390| 6d 70 6f 6e 65 6e 74 20 | 4d 61 6e 61 67 65 72 2c |mponent |Manager,|
|000023a0| 20 61 6e 64 20 73 65 76 | 65 72 61 6c 20 63 6f 6d | and sev|eral com|
|000023b0| 70 6f 6e 65 6e 74 73 2e | 20 41 70 70 6c 69 63 61 |ponents.| Applica|
|000023c0| 74 69 6f 6e 73 20 61 6e | 64 20 6f 74 68 65 72 20 |tions an|d other |
|000023d0| 63 6c 69 65 6e 74 73 20 | 75 73 65 20 74 68 65 20 |clients |use the |
|000023e0| 43 6f 6d 70 6f 6e 65 6e | 74 20 4d 61 6e 61 67 65 |Componen|t Manage|
|000023f0| 72 20 74 6f 20 61 63 63 | 65 73 73 20 63 6f 6d 70 |r to acc|ess comp|
|00002400| 6f 6e 65 6e 74 73 2e 20 | 49 6e 20 74 68 69 73 20 |onents. |In this |
|00002410| 66 69 67 75 72 65 2c 20 | 66 6f 75 72 20 63 6f 6d |figure, |four com|
|00002420| 70 6f 6e 65 6e 74 73 20 | 61 72 65 20 61 76 61 69 |ponents |are avai|
|00002430| 6c 61 62 6c 65 20 74 6f | 20 74 68 65 20 61 70 70 |lable to| the app|
|00002440| 6c 69 63 61 74 69 6f 6e | 3a 20 61 6e 20 69 6d 61 |lication|: an ima|
|00002450| 67 65 20 64 65 63 6f 6d | 70 72 65 73 73 69 6f 6e |ge decom|pression|
|00002460| 20 63 6f 6d 70 6f 6e 65 | 6e 74 20 28 6f 66 20 74 | compone|nt (of t|
|00002470| 79 70 65 20 27 69 6d 64 | 63 27 29 2c 20 74 77 6f |ype 'imd|c'), two|
|00002480| 20 64 72 61 77 69 6e 67 | 20 63 6f 6d 70 6f 6e 65 | drawing| compone|
|00002490| 6e 74 73 20 28 6f 66 20 | 74 79 70 65 20 27 64 72 |nts (of |type 'dr|
|000024a0| 61 77 27 29 2c 20 61 6e | 64 20 61 20 63 6c 6f 63 |aw'), an|d a cloc|
|000024b0| 6b 20 63 6f 6d 70 6f 6e | 65 6e 74 20 28 6f 66 20 |k compon|ent (of |
|000024c0| 74 79 70 65 20 27 63 6c | 6f 6b 27 29 2e 20 4e 6f |type 'cl|ok'). No|
|000024d0| 74 65 20 74 68 61 74 20 | 74 68 65 20 74 77 6f 20 |te that |the two |
|000024e0| 64 72 61 77 69 6e 67 20 | 63 6f 6d 70 6f 6e 65 6e |drawing |componen|
|000024f0| 74 73 20 68 61 76 65 20 | 64 69 66 66 65 72 65 6e |ts have |differen|
|00002500| 74 20 73 75 62 74 79 70 | 65 73 3a 20 27 6f 76 61 |t subtyp|es: 'ova|
|00002510| 6c 27 20 61 6e 64 20 27 | 72 65 63 74 27 2e 20 54 |l' and '|rect'. T|
|00002520| 68 65 20 64 72 61 77 69 | 6e 67 20 63 6f 6d 70 6f |he drawi|ng compo|
|00002530| 6e 65 6e 74 20 77 69 74 | 68 20 73 75 62 74 79 70 |nent wit|h subtyp|
|00002540| 65 20 27 6f 76 61 6c 27 | 20 64 72 61 77 73 20 6f |e 'oval'| draws o|
|00002550| 76 61 6c 73 2c 20 61 6e | 64 20 74 68 65 20 64 72 |vals, an|d the dr|
|00002560| 61 77 69 6e 67 20 63 6f | 6d 70 6f 6e 65 6e 74 20 |awing co|mponent |
|00002570| 77 69 74 68 20 73 75 62 | 74 79 70 65 20 27 72 65 |with sub|type 're|
|00002580| 63 74 27 20 64 72 61 77 | 73 20 72 65 63 74 61 6e |ct' draw|s rectan|
|00002590| 67 6c 65 73 2e 0d 46 69 | 67 75 72 65 20 31 2d 31 |gles..Fi|gure 1-1|
|000025a0| 09 54 68 65 20 72 65 6c | 61 74 69 6f 6e 73 68 69 |.The rel|ationshi|
|000025b0| 70 20 62 65 74 77 65 65 | 6e 20 61 6e 20 61 70 70 |p betwee|n an app|
|000025c0| 6c 69 63 61 74 69 6f 6e | 2c 20 74 68 65 20 43 6f |lication|, the Co|
|000025d0| 6d 70 6f 6e 65 6e 74 20 | 4d 61 6e 61 67 65 72 2c |mponent |Manager,|
|000025e0| 20 61 6e 64 20 63 6f 6d | 70 6f 6e 65 6e 74 73 0d | and com|ponents.|
|000025f0| 0d 54 68 65 20 43 6f 6d | 70 6f 6e 65 6e 74 20 4d |.The Com|ponent M|
|00002600| 61 6e 61 67 65 72 20 61 | 6c 6c 6f 77 73 20 61 20 |anager a|llows a |
|00002610| 73 69 6e 67 6c 65 20 63 | 6f 6d 70 6f 6e 65 6e 74 |single c|omponent|
|00002620| 20 74 6f 20 73 65 72 76 | 65 20 6d 75 6c 74 69 70 | to serv|e multip|
|00002630| 6c 65 20 63 6c 69 65 6e | 74 20 61 70 70 6c 69 63 |le clien|t applic|
|00002640| 61 74 69 6f 6e 73 20 61 | 74 20 74 68 65 20 73 61 |ations a|t the sa|
|00002650| 6d 65 20 74 69 6d 65 2e | 20 45 61 63 68 20 63 6c |me time.| Each cl|
|00002660| 69 65 6e 74 20 61 70 70 | 6c 69 63 61 74 69 6f 6e |ient app|lication|
|00002670| 20 68 61 73 20 61 20 75 | 6e 69 71 75 65 20 61 63 | has a u|nique ac|
|00002680| 63 65 73 73 20 70 61 74 | 68 20 74 6f 20 74 68 65 |cess pat|h to the|
|00002690| 20 63 6f 6d 70 6f 6e 65 | 6e 74 2e 20 54 68 65 73 | compone|nt. Thes|
|000026a0| 65 20 61 63 63 65 73 73 | 20 70 61 74 68 73 20 61 |e access| paths a|
|000026b0| 72 65 20 63 61 6c 6c 65 | 64 20 63 6f 6d 70 6f 6e |re calle|d compon|
|000026c0| 65 6e 74 20 63 6f 6e 6e | 65 63 74 69 6f 6e 73 2e |ent conn|ections.|
|000026d0| 20 59 6f 75 20 69 64 65 | 6e 74 69 66 79 20 61 20 | You ide|ntify a |
|000026e0| 63 6f 6d 70 6f 6e 65 6e | 74 20 63 6f 6e 6e 65 63 |componen|t connec|
|000026f0| 74 69 6f 6e 20 62 79 20 | 73 70 65 63 69 66 79 69 |tion by |specifyi|
|00002700| 6e 67 20 61 20 63 6f 6d | 70 6f 6e 65 6e 74 20 69 |ng a com|ponent i|
|00002710| 6e 73 74 61 6e 63 65 2e | 20 54 68 65 20 43 6f 6d |nstance.| The Com|
|00002720| 70 6f 6e 65 6e 74 20 4d | 61 6e 61 67 65 72 20 70 |ponent M|anager p|
|00002730| 72 6f 76 69 64 65 73 20 | 74 68 69 73 20 63 6f 6d |rovides |this com|
|00002740| 70 6f 6e 65 6e 74 20 69 | 6e 73 74 61 6e 63 65 20 |ponent i|nstance |
|00002750| 74 6f 20 79 6f 75 72 20 | 61 70 70 6c 69 63 61 74 |to your |applicat|
|00002760| 69 6f 6e 20 77 68 65 6e | 20 79 6f 75 20 6f 70 65 |ion when| you ope|
|00002770| 6e 20 61 20 63 6f 6e 6e | 65 63 74 69 6f 6e 20 74 |n a conn|ection t|
|00002780| 6f 20 61 20 63 6f 6d 70 | 6f 6e 65 6e 74 2e 20 54 |o a comp|onent. T|
|00002790| 68 65 20 63 6f 6d 70 6f | 6e 65 6e 74 20 6d 61 69 |he compo|nent mai|
|000027a0| 6e 74 61 69 6e 73 20 73 | 65 70 61 72 61 74 65 20 |ntains s|eparate |
|000027b0| 73 74 61 74 75 73 20 69 | 6e 66 6f 72 6d 61 74 69 |status i|nformati|
|000027c0| 6f 6e 20 66 6f 72 20 65 | 61 63 68 20 6f 70 65 6e |on for e|ach open|
|000027d0| 20 63 6f 6e 6e 65 63 74 | 69 6f 6e 2e 0d 46 6f 72 | connect|ion..For|
|000027e0| 20 65 78 61 6d 70 6c 65 | 2c 20 6d 75 6c 74 69 70 | example|, multip|
|000027f0| 6c 65 20 61 70 70 6c 69 | 63 61 74 69 6f 6e 73 20 |le appli|cations |
|00002800| 6d 69 67 68 74 20 65 61 | 63 68 20 6f 70 65 6e 20 |might ea|ch open |
|00002810| 61 20 63 6f 6e 6e 65 63 | 74 69 6f 6e 20 74 6f 20 |a connec|tion to |
|00002820| 61 6e 20 69 6d 61 67 65 | 20 64 65 63 6f 6d 70 72 |an image| decompr|
|00002830| 65 73 73 69 6f 6e 20 63 | 6f 6d 70 6f 6e 65 6e 74 |ession c|omponent|
|00002840| 2e 20 54 68 65 20 43 6f | 6d 70 6f 6e 65 6e 74 20 |. The Co|mponent |
|00002850| 4d 61 6e 61 67 65 72 20 | 72 6f 75 74 65 73 20 65 |Manager |routes e|
|00002860| 61 63 68 20 61 70 70 6c | 69 63 61 74 69 6f 6e 20 |ach appl|ication |
|00002870| 72 65 71 75 65 73 74 20 | 74 6f 20 74 68 65 20 63 |request |to the c|
|00002880| 6f 6d 70 6f 6e 65 6e 74 | 20 69 6e 73 74 61 6e 63 |omponent| instanc|
|00002890| 65 20 66 6f 72 20 74 68 | 61 74 20 63 6f 6e 6e 65 |e for th|at conne|
|000028a0| 63 74 69 6f 6e 2e 20 42 | 65 63 61 75 73 65 20 61 |ction. B|ecause a|
|000028b0| 20 63 6f 6d 70 6f 6e 65 | 6e 74 20 63 61 6e 20 6d | compone|nt can m|
|000028c0| 61 69 6e 74 61 69 6e 20 | 73 65 70 61 72 61 74 65 |aintain |separate|
|000028d0| 20 73 74 6f 72 61 67 65 | 20 66 6f 72 20 65 61 63 | storage| for eac|
|000028e0| 68 20 63 6f 6e 6e 65 63 | 74 69 6f 6e 2c 20 61 70 |h connec|tion, ap|
|000028f0| 70 6c 69 63 61 74 69 6f | 6e 20 72 65 71 75 65 73 |plicatio|n reques|
|00002900| 74 73 20 64 6f 20 6e 6f | 74 20 69 6e 74 65 72 66 |ts do no|t interf|
|00002910| 65 72 65 20 77 69 74 68 | 20 65 61 63 68 20 6f 74 |ere with| each ot|
|00002920| 68 65 72 20 61 6e 64 20 | 65 61 63 68 20 61 70 70 |her and |each app|
|00002930| 6c 69 63 61 74 69 6f 6e | 20 68 61 73 20 66 75 6c |lication| has ful|
|00002940| 6c 20 61 63 63 65 73 73 | 20 74 6f 20 74 68 65 20 |l access| to the |
|00002950| 73 65 72 76 69 63 65 73 | 20 70 72 6f 76 69 64 65 |services| provide|
|00002960| 64 20 62 79 20 74 68 65 | 20 63 6f 6d 70 6f 6e 65 |d by the| compone|
|00002970| 6e 74 2e 20 28 53 65 65 | 20 46 69 67 75 72 65 20 |nt. (See| Figure |
|00002980| 31 2d 32 20 6f 6e 20 70 | 61 67 65 20 31 2d 33 33 |1-2 on p|age 1-33|
|00002990| 20 66 6f 72 20 61 6e 20 | 69 6c 6c 75 73 74 72 61 | for an |illustra|
|000029a0| 74 69 6f 6e 20 6f 66 20 | 6d 75 6c 74 69 70 6c 65 |tion of |multiple|
|000029b0| 20 61 70 6c 69 63 61 74 | 69 6f 6e 73 20 75 73 69 | aplicat|ions usi|
|000029c0| 6e 67 20 74 68 65 20 73 | 65 72 76 69 63 65 73 20 |ng the s|ervices |
|000029d0| 6f 66 20 74 68 65 20 73 | 61 6d 65 20 63 6f 6d 70 |of the s|ame comp|
|000029e0| 6f 6e 65 6e 74 2e 29 20 | 0d 0d 55 73 69 6e 67 20 |onent.) |..Using |
|000029f0| 74 68 65 20 43 6f 6d 70 | 6f 6e 65 6e 74 20 4d 61 |the Comp|onent Ma|
|00002a00| 6e 61 67 65 72 0d 0d 54 | 68 69 73 20 73 65 63 74 |nager..T|his sect|
|00002a10| 69 6f 6e 20 64 65 73 63 | 72 69 62 65 73 20 68 6f |ion desc|ribes ho|
|00002a20| 77 20 79 6f 75 20 63 61 | 6e 20 75 73 65 20 74 68 |w you ca|n use th|
|00002a30| 65 20 43 6f 6d 70 6f 6e | 65 6e 74 20 4d 61 6e 61 |e Compon|ent Mana|
|00002a40| 67 65 72 20 74 6f 20 0d | 6e 09 67 61 69 6e 20 61 |ger to .|n.gain a|
|00002a50| 63 63 65 73 73 20 74 6f | 20 63 6f 6d 70 6f 6e 65 |ccess to| compone|
|00002a60| 6e 74 73 0d 6e 09 6c 6f | 63 61 74 65 20 63 6f 6d |nts.n.lo|cate com|
|00002a70| 70 6f 6e 65 6e 74 73 20 | 61 6e 64 20 74 61 6b 65 |ponents |and take|
|00002a80| 20 61 64 76 61 6e 74 61 | 67 65 20 6f 66 20 74 68 | advanta|ge of th|
|00002a90| 65 69 72 20 73 65 72 76 | 69 63 65 73 0d 6e 09 67 |eir serv|ices.n.g|
|00002aa0| 65 74 20 69 6e 66 6f 72 | 6d 61 74 69 6f 6e 20 61 |et infor|mation a|
|00002ab0| 62 6f 75 74 20 61 20 63 | 6f 6d 70 6f 6e 65 6e 74 |bout a c|omponent|
|00002ac0| 0d 6e 09 63 6c 6f 73 65 | 20 61 20 63 6f 6e 6e 65 |.n.close| a conne|
|00002ad0| 63 74 69 6f 6e 20 74 6f | 20 61 20 63 6f 6d 70 6f |ction to| a compo|
|00002ae0| 6e 65 6e 74 0d 54 68 65 | 20 43 6f 6d 70 6f 6e 65 |nent.The| Compone|
|00002af0| 6e 74 20 4d 61 6e 61 67 | 65 72 20 69 73 20 61 76 |nt Manag|er is av|
|00002b00| 61 69 6c 61 62 6c 65 20 | 69 6e 20 53 79 73 74 65 |ailable |in Syste|
|00002b10| 6d 20 37 2e 31 20 6f 72 | 20 6c 61 74 65 72 20 61 |m 7.1 or| later a|
|00002b20| 6e 64 20 6d 61 79 20 62 | 65 20 70 72 65 73 65 6e |nd may b|e presen|
|00002b30| 74 20 69 6e 20 53 79 73 | 74 65 6d 20 37 2e 20 54 |t in Sys|tem 7. T|
|00002b40| 6f 20 64 65 74 65 72 6d | 69 6e 65 20 77 68 65 74 |o determ|ine whet|
|00002b50| 68 65 72 20 74 68 65 20 | 43 6f 6d 70 6f 6e 65 6e |her the |Componen|
|00002b60| 74 20 4d 61 6e 61 67 65 | 72 20 69 73 20 61 76 61 |t Manage|r is ava|
|00002b70| 69 6c 61 62 6c 65 2c 20 | 63 61 6c 6c 20 74 68 65 |ilable, |call the|
|00002b80| 20 47 65 73 74 61 6c 74 | 20 66 75 6e 63 74 69 6f | Gestalt| functio|
|00002b90| 6e 20 77 69 74 68 20 74 | 68 65 20 67 65 73 74 61 |n with t|he gesta|
|00002ba0| 6c 74 43 6f 6d 70 6f 6e | 65 6e 74 4d 67 72 20 73 |ltCompon|entMgr s|
|00002bb0| 65 6c 65 63 74 6f 72 20 | 61 6e 64 20 63 68 65 63 |elector |and chec|
|00002bc0| 6b 20 74 68 65 20 76 61 | 6c 75 65 20 6f 66 20 74 |k the va|lue of t|
|00002bd0| 68 65 20 72 65 73 70 6f | 6e 73 65 20 70 61 72 61 |he respo|nse para|
|00002be0| 6d 65 74 65 72 2e 20 0d | 43 4f 4e 53 54 0d 09 67 |meter. .|CONST..g|
|00002bf0| 65 73 74 61 6c 74 43 6f | 6d 70 6f 6e 65 6e 74 4d |estaltCo|mponentM|
|00002c00| 67 72 09 09 09 09 09 09 | 09 20 09 3d 20 27 63 70 |gr......|. .= 'cp|
|00002c10| 6e 74 27 3b 0d 54 68 65 | 20 47 65 73 74 61 6c 74 |nt';.The| Gestalt|
|00002c20| 20 66 75 6e 63 74 69 6f | 6e 20 72 65 74 75 72 6e | functio|n return|
|00002c30| 73 20 69 6e 20 74 68 65 | 20 72 65 73 70 6f 6e 73 |s in the| respons|
|00002c40| 65 20 70 61 72 61 6d 65 | 74 65 72 20 61 20 33 32 |e parame|ter a 32|
|00002c50| 2d 62 69 74 20 76 61 6c | 75 65 20 69 6e 64 69 63 |-bit val|ue indic|
|00002c60| 61 74 69 6e 67 20 74 68 | 65 20 76 65 72 73 69 6f |ating th|e versio|
|00002c70| 6e 20 6f 66 20 74 68 65 | 20 43 6f 6d 70 6f 6e 65 |n of the| Compone|
|00002c80| 6e 74 20 4d 61 6e 61 67 | 65 72 20 74 68 61 74 20 |nt Manag|er that |
|00002c90| 69 73 20 69 6e 73 74 61 | 6c 6c 65 64 2e 20 56 65 |is insta|lled. Ve|
|00002ca0| 72 73 69 6f 6e 20 33 20 | 61 6e 64 20 61 62 6f 76 |rsion 3 |and abov|
|00002cb0| 65 20 73 75 70 70 6f 72 | 74 73 20 61 75 74 6f 6d |e suppor|ts autom|
|00002cc0| 61 74 69 63 20 76 65 72 | 73 69 6f 6e 20 63 6f 6e |atic ver|sion con|
|00002cd0| 74 72 6f 6c 2c 20 74 68 | 65 20 75 6e 72 65 67 69 |trol, th|e unregi|
|00002ce0| 73 74 65 72 20 72 65 71 | 75 65 73 74 2c 20 61 6e |ster req|uest, an|
|00002cf0| 64 20 69 63 6f 6e 20 66 | 61 6d 69 6c 69 65 73 2e |d icon f|amilies.|
|00002d00| 20 59 6f 75 20 73 68 6f | 75 6c 64 20 74 65 73 74 | You sho|uld test|
|00002d10| 20 74 68 65 20 76 65 72 | 73 69 6f 6e 20 6e 75 6d | the ver|sion num|
|00002d20| 62 65 72 20 62 65 66 6f | 72 65 20 75 73 69 6e 67 |ber befo|re using|
|00002d30| 20 61 6e 79 20 6f 66 20 | 74 68 65 73 65 20 66 65 | any of |these fe|
|00002d40| 61 74 75 72 65 73 2e 0d | 54 68 69 73 20 73 65 63 |atures..|This sec|
|00002d50| 74 69 6f 6e 20 70 72 65 | 73 65 6e 74 73 20 73 65 |tion pre|sents se|
|00002d60| 76 65 72 61 6c 20 65 78 | 61 6d 70 6c 65 73 20 64 |veral ex|amples d|
|00002d70| 65 6d 6f 6e 73 74 72 61 | 74 69 6e 67 20 68 6f 77 |emonstra|ting how|
|00002d80| 20 74 6f 20 75 73 65 20 | 63 6f 6d 70 6f 6e 65 6e | to use |componen|
|00002d90| 74 73 20 61 6e 64 20 74 | 68 65 20 43 6f 6d 70 6f |ts and t|he Compo|
|00002da0| 6e 65 6e 74 20 4d 61 6e | 61 67 65 72 2e 20 41 6c |nent Man|ager. Al|
|00002db0| 6c 20 6f 66 20 74 68 65 | 73 65 20 65 78 61 6d 70 |l of the|se examp|
|00002dc0| 6c 65 73 20 75 73 65 20 | 74 68 65 20 73 65 72 76 |les use |the serv|
|00002dd0| 69 63 65 73 20 6f 66 20 | 61 20 64 72 61 77 69 6e |ices of |a drawin|
|00002de0| 67 20 63 6f 6d 70 6f 6e | 65 6e 74 d1 61 20 73 69 |g compon|ent.a si|
|00002df0| 6d 70 6c 65 20 63 6f 6d | 70 6f 6e 65 6e 74 20 74 |mple com|ponent t|
|00002e00| 68 61 74 20 64 72 61 77 | 73 20 61 6e 20 6f 62 6a |hat draw|s an obj|
|00002e10| 65 63 74 20 6f 66 20 61 | 20 70 61 72 74 69 63 75 |ect of a| particu|
|00002e20| 6c 61 72 20 73 68 61 70 | 65 20 6f 6e 20 74 68 65 |lar shap|e on the|
|00002e30| 20 73 63 72 65 65 6e 2e | 20 44 72 61 77 69 6e 67 | screen.| Drawing|
|00002e40| 20 63 6f 6d 70 6f 6e 65 | 6e 74 73 20 68 61 76 65 | compone|nts have|
|00002e50| 20 61 20 63 6f 6d 70 6f | 6e 65 6e 74 20 74 79 70 | a compo|nent typ|
|00002e60| 65 20 6f 66 20 27 64 72 | 61 77 27 2e 20 54 68 65 |e of 'dr|aw'. The|
|00002e70| 20 63 6f 6d 70 6f 6e 65 | 6e 74 20 73 75 62 74 79 | compone|nt subty|
|00002e80| 70 65 20 76 61 6c 75 65 | 20 69 6e 64 69 63 61 74 |pe value| indicat|
|00002e90| 65 73 20 74 68 65 20 74 | 79 70 65 20 6f 66 20 6f |es the t|ype of o|
|00002ea0| 62 6a 65 63 74 20 74 68 | 65 20 63 6f 6d 70 6f 6e |bject th|e compon|
|00002eb0| 65 6e 74 20 64 72 61 77 | 73 2e 20 46 6f 72 20 65 |ent draw|s. For e|
|00002ec0| 78 61 6d 70 6c 65 2c 20 | 61 20 64 72 61 77 69 6e |xample, |a drawin|
|00002ed0| 67 20 63 6f 6d 70 6f 6e | 65 6e 74 20 74 68 61 74 |g compon|ent that|
|00002ee0| 20 64 72 61 77 73 20 61 | 6e 20 6f 76 61 6c 20 68 | draws a|n oval h|
|00002ef0| 61 73 20 61 20 63 6f 6d | 70 6f 6e 65 6e 74 20 73 |as a com|ponent s|
|00002f00| 75 62 74 79 70 65 20 6f | 66 20 27 6f 76 61 6c 27 |ubtype o|f 'oval'|
|00002f10| 2e 20 46 6f 72 20 69 6e | 66 6f 72 6d 61 74 69 6f |. For in|formatio|
|00002f20| 6e 20 6f 6e 20 63 72 65 | 61 74 69 6e 67 20 79 6f |n on cre|ating yo|
|00002f30| 75 72 20 6f 77 6e 20 63 | 6f 6d 70 6f 6e 65 6e 74 |ur own c|omponent|
|00002f40| 73 20 61 6e 64 20 66 6f | 72 20 6c 69 73 74 69 6e |s and fo|r listin|
|00002f50| 67 73 20 74 68 61 74 20 | 73 68 6f 77 20 74 68 65 |gs that |show the|
|00002f60| 20 63 6f 64 65 20 66 6f | 72 20 61 20 64 72 61 77 | code fo|r a draw|
|00002f70| 69 6e 67 20 63 6f 6d 70 | 6f 6e 65 6e 74 2c 20 73 |ing comp|onent, s|
|00002f80| 65 65 20 d2 43 72 65 61 | 74 69 6e 67 20 43 6f 6d |ee .Crea|ting Com|
|00002f90| 70 6f 6e 65 6e 74 73 d3 | 20 62 65 67 69 6e 6e 69 |ponents.| beginni|
|00002fa0| 6e 67 20 6f 6e 20 70 61 | 67 65 20 31 2d 31 32 2e |ng on pa|ge 1-12.|
|00002fb0| 0d 4f 70 65 6e 69 6e 67 | 20 43 6f 6e 6e 65 63 74 |.Opening| Connect|
|00002fc0| 69 6f 6e 73 20 74 6f 20 | 43 6f 6d 70 6f 6e 65 6e |ions to |Componen|
|00002fd0| 74 73 0d 0d 57 68 65 6e | 20 79 6f 75 72 20 61 70 |ts..When| your ap|
|00002fe0| 70 6c 69 63 61 74 69 6f | 6e 20 72 65 71 75 69 72 |plicatio|n requir|
|00002ff0| 65 73 20 74 68 65 20 73 | 65 72 76 69 63 65 73 20 |es the s|ervices |
|00003000| 6f 66 20 61 20 63 6f 6d | 70 6f 6e 65 6e 74 2c 20 |of a com|ponent, |
|00003010| 79 6f 75 20 74 79 70 69 | 63 61 6c 6c 79 20 70 65 |you typi|cally pe|
|00003020| 72 66 6f 72 6d 20 74 68 | 65 73 65 20 73 74 65 70 |rform th|ese step|
|00003030| 73 3a 0d 6e 09 6f 70 65 | 6e 20 61 20 63 6f 6e 6e |s:.n.ope|n a conn|
|00003040| 65 63 74 69 6f 6e 20 74 | 6f 20 74 68 65 20 64 65 |ection t|o the de|
|00003050| 73 69 72 65 64 20 63 6f | 6d 70 6f 6e 65 6e 74 0d |sired co|mponent.|
|00003060| 6e 09 75 73 65 20 74 68 | 65 20 73 65 72 76 69 63 |n.use th|e servic|
|00003070| 65 73 20 6f 66 20 74 68 | 65 20 63 6f 6d 70 6f 6e |es of th|e compon|
|00003080| 65 6e 74 0d 6e 09 63 6c | 6f 73 65 20 74 68 65 20 |ent.n.cl|ose the |
|00003090| 63 6f 6e 6e 65 63 74 69 | 6f 6e 20 74 6f 20 74 68 |connecti|on to th|
|000030a0| 65 20 63 6f 6d 70 6f 6e | 65 6e 74 0d 54 68 65 20 |e compon|ent.The |
|000030b0| 66 6f 6c 6c 6f 77 69 6e | 67 20 73 65 63 74 69 6f |followin|g sectio|
|000030c0| 6e 73 20 64 65 73 63 72 | 69 62 65 20 65 61 63 68 |ns descr|ibe each|
|000030d0| 20 6f 66 20 74 68 65 73 | 65 20 73 74 65 70 73 20 | of thes|e steps |
|000030e0| 69 6e 20 6d 6f 72 65 20 | 64 65 74 61 69 6c 2e 0d |in more |detail..|
|000030f0| 4f 70 65 6e 69 6e 67 20 | 61 20 43 6f 6e 6e 65 63 |Opening |a Connec|
|00003100| 74 69 6f 6e 20 74 6f 20 | 61 20 44 65 66 61 75 6c |tion to |a Defaul|
|00003110| 74 20 43 6f 6d 70 6f 6e | 65 6e 74 0d 0d 59 6f 75 |t Compon|ent..You|
|00003120| 72 20 61 70 70 6c 69 63 | 61 74 69 6f 6e 20 6d 75 |r applic|ation mu|
|00003130| 73 74 20 75 73 65 20 74 | 68 65 20 43 6f 6d 70 6f |st use t|he Compo|
|00003140| 6e 65 6e 74 20 4d 61 6e | 61 67 65 72 20 74 6f 20 |nent Man|ager to |
|00003150| 67 61 69 6e 20 61 63 63 | 65 73 73 20 74 6f 20 61 |gain acc|ess to a|
|00003160| 20 63 6f 6d 70 6f 6e 65 | 6e 74 2e 20 54 68 65 20 | compone|nt. The |
|00003170| 66 69 72 73 74 20 73 74 | 65 70 20 69 73 20 74 6f |first st|ep is to|
|00003180| 20 6c 6f 63 61 74 65 20 | 61 6e 20 61 70 70 72 6f | locate |an appro|
|00003190| 70 72 69 61 74 65 20 63 | 6f 6d 70 6f 6e 65 6e 74 |priate c|omponent|
|000031a0| 2e 20 59 6f 75 20 63 61 | 6e 20 6c 6f 63 61 74 65 |. You ca|n locate|
|000031b0| 20 74 68 65 20 63 6f 6d | 70 6f 6e 65 6e 74 20 79 | the com|ponent y|
|000031c0| 6f 75 72 73 65 6c 66 2c | 20 6f 72 20 79 6f 75 20 |ourself,| or you |
|000031d0| 63 61 6e 20 61 6c 6c 6f | 77 20 74 68 65 20 43 6f |can allo|w the Co|
|000031e0| 6d 70 6f 6e 65 6e 74 20 | 4d 61 6e 61 67 65 72 20 |mponent |Manager |
|000031f0| 74 6f 20 6c 6f 63 61 74 | 65 20 61 20 73 75 69 74 |to locat|e a suit|
|00003200| 61 62 6c 65 20 63 6f 6d | 70 6f 6e 65 6e 74 20 66 |able com|ponent f|
|00003210| 6f 72 20 79 6f 75 2e 20 | 59 6f 75 72 20 61 70 70 |or you. |Your app|
|00003220| 6c 69 63 61 74 69 6f 6e | 20 74 68 65 6e 20 6f 70 |lication| then op|
|00003230| 65 6e 73 20 61 20 63 6f | 6e 6e 65 63 74 69 6f 6e |ens a co|nnection|
|00003240| 20 74 6f 20 74 68 61 74 | 20 63 6f 6d 70 6f 6e 65 | to that| compone|
|00003250| 6e 74 2e 20 4f 6e 63 65 | 20 79 6f 75 20 68 61 76 |nt. Once| you hav|
|00003260| 65 20 6f 70 65 6e 65 64 | 20 61 20 63 6f 6e 6e 65 |e opened| a conne|
|00003270| 63 74 69 6f 6e 20 74 6f | 20 61 20 63 6f 6d 70 6f |ction to| a compo|
|00003280| 6e 65 6e 74 2c 20 79 6f | 75 20 63 61 6e 20 75 73 |nent, yo|u can us|
|00003290| 65 20 74 68 65 20 73 65 | 72 76 69 63 65 73 20 70 |e the se|rvices p|
|000032a0| 72 6f 76 69 64 65 64 20 | 62 79 20 74 68 61 74 20 |rovided |by that |
|000032b0| 63 6f 6d 70 6f 6e 65 6e | 74 2e 20 57 68 65 6e 20 |componen|t. When |
|000032c0| 79 6f 75 20 68 61 76 65 | 20 66 69 6e 69 73 68 65 |you have| finishe|
|000032d0| 64 20 75 73 69 6e 67 20 | 74 68 65 20 63 6f 6d 70 |d using |the comp|
|000032e0| 6f 6e 65 6e 74 2c 20 79 | 6f 75 20 73 68 6f 75 6c |onent, y|ou shoul|
|000032f0| 64 20 63 6c 6f 73 65 20 | 74 68 65 20 63 6f 6e 6e |d close |the conn|
|00003300| 65 63 74 69 6f 6e 2e 20 | 0d 49 66 20 79 6f 75 20 |ection. |.If you |
|00003310| 61 72 65 20 69 6e 74 65 | 72 65 73 74 65 64 20 6f |are inte|rested o|
|00003320| 6e 6c 79 20 69 6e 20 75 | 73 69 6e 67 20 61 20 63 |nly in u|sing a c|
|00003330| 6f 6d 70 6f 6e 65 6e 74 | 20 6f 66 20 61 20 70 61 |omponent| of a pa|
|00003340| 72 74 69 63 75 6c 61 72 | 20 74 79 70 65 2d 73 75 |rticular| type-su|
|00003350| 62 74 79 70 65 20 61 6e | 64 20 79 6f 75 20 64 6f |btype an|d you do|
|00003360| 20 6e 6f 74 20 6e 65 65 | 64 20 74 6f 20 73 70 65 | not nee|d to spe|
|00003370| 63 69 66 79 20 61 6e 79 | 20 6f 74 68 65 72 20 63 |cify any| other c|
|00003380| 68 61 72 61 63 74 65 72 | 69 73 74 69 63 73 20 6f |haracter|istics o|
|00003390| 66 20 74 68 65 20 63 6f | 6d 70 6f 6e 65 6e 74 2c |f the co|mponent,|
|000033a0| 20 75 73 65 20 74 68 65 | 20 4f 70 65 6e 44 65 66 | use the| OpenDef|
|000033b0| 61 75 6c 74 43 6f 6d 70 | 6f 6e 65 6e 74 20 66 75 |aultComp|onent fu|
|000033c0| 6e 63 74 69 6f 6e 20 61 | 6e 64 20 73 70 65 63 69 |nction a|nd speci|
|000033d0| 66 79 20 6f 6e 6c 79 20 | 74 68 65 20 63 6f 6d 70 |fy only |the comp|
|000033e0| 6f 6e 65 6e 74 20 74 79 | 70 65 20 61 6e 64 20 73 |onent ty|pe and s|
|000033f0| 75 62 74 79 70 65 d1 74 | 68 65 20 43 6f 6d 70 6f |ubtype.t|he Compo|
|00003400| 6e 65 6e 74 20 4d 61 6e | 61 67 65 72 20 74 68 65 |nent Man|ager the|
|00003410| 6e 20 73 65 6c 65 63 74 | 73 20 61 20 63 6f 6d 70 |n select|s a comp|
|00003420| 6f 6e 65 6e 74 20 66 6f | 72 20 79 6f 75 20 61 6e |onent fo|r you an|
|00003430| 64 20 6f 70 65 6e 73 20 | 61 20 63 6f 6e 6e 65 63 |d opens |a connec|
|00003440| 74 69 6f 6e 20 74 6f 20 | 74 68 61 74 20 63 6f 6d |tion to |that com|
|00003450| 70 6f 6e 65 6e 74 2e 20 | 54 68 69 73 20 69 73 20 |ponent. |This is |
|00003460| 74 68 65 20 65 61 73 69 | 65 73 74 20 74 65 63 68 |the easi|est tech|
|00003470| 6e 69 71 75 65 20 66 6f | 72 20 6f 70 65 6e 69 6e |nique fo|r openin|
|00003480| 67 20 61 20 63 6f 6d 70 | 6f 6e 65 6e 74 20 63 6f |g a comp|onent co|
|00003490| 6e 6e 65 63 74 69 6f 6e | 2e 20 54 68 65 20 4f 70 |nnection|. The Op|
|000034a0| 65 6e 44 65 66 61 75 6c | 74 43 6f 6d 70 6f 6e 65 |enDefaul|tCompone|
|000034b0| 6e 74 20 66 75 6e 63 74 | 69 6f 6e 20 73 65 61 72 |nt funct|ion sear|
|000034c0| 63 68 65 73 20 69 74 73 | 20 6c 69 73 74 20 6f 66 |ches its| list of|
|000034d0| 20 61 76 61 69 6c 61 62 | 6c 65 20 63 6f 6d 70 6f | availab|le compo|
|000034e0| 6e 65 6e 74 73 20 61 6e | 64 20 61 74 74 65 6d 70 |nents an|d attemp|
|000034f0| 74 73 20 74 6f 20 6f 70 | 65 6e 20 61 20 63 6f 6e |ts to op|en a con|
|00003500| 6e 65 63 74 69 6f 6e 20 | 74 6f 20 61 20 63 6f 6d |nection |to a com|
|00003510| 70 6f 6e 65 6e 74 20 77 | 69 74 68 20 74 68 65 20 |ponent w|ith the |
|00003520| 73 70 65 63 69 66 69 65 | 64 20 74 79 70 65 20 61 |specifie|d type a|
|00003530| 6e 64 20 73 75 62 74 79 | 70 65 2e 20 49 66 20 6d |nd subty|pe. If m|
|00003540| 6f 72 65 20 74 68 61 6e | 20 6f 6e 65 20 63 6f 6d |ore than| one com|
|00003550| 70 6f 6e 65 6e 74 20 6f | 66 20 74 68 65 20 73 70 |ponent o|f the sp|
|00003560| 65 63 69 66 69 65 64 20 | 74 79 70 65 20 61 6e 64 |ecified |type and|
|00003570| 20 73 75 62 74 79 70 65 | 20 69 73 20 61 76 61 69 | subtype| is avai|
|00003580| 6c 61 62 6c 65 2c 20 4f | 70 65 6e 44 65 66 61 75 |lable, O|penDefau|
|00003590| 6c 74 43 6f 6d 70 6f 6e | 65 6e 74 20 73 65 6c 65 |ltCompon|ent sele|
|000035a0| 63 74 73 20 74 68 65 20 | 66 69 72 73 74 20 6f 6e |cts the |first on|
|000035b0| 65 20 69 6e 20 74 68 65 | 20 6c 69 73 74 2e 20 49 |e in the| list. I|
|000035c0| 66 20 73 75 63 63 65 73 | 73 66 75 6c 2c 20 74 68 |f succes|sful, th|
|000035d0| 65 20 4f 70 65 6e 44 65 | 66 61 75 6c 74 43 6f 6d |e OpenDe|faultCom|
|000035e0| 70 6f 6e 65 6e 74 20 66 | 75 6e 63 74 69 6f 6e 20 |ponent f|unction |
|000035f0| 72 65 74 75 72 6e 73 20 | 61 20 63 6f 6d 70 6f 6e |returns |a compon|
|00003600| 65 6e 74 20 69 6e 73 74 | 61 6e 63 65 20 74 68 61 |ent inst|ance tha|
|00003610| 74 20 69 64 65 6e 74 69 | 66 69 65 73 20 79 6f 75 |t identi|fies you|
|00003620| 72 20 63 6f 6e 6e 65 63 | 74 69 6f 6e 20 74 6f 20 |r connec|tion to |
|00003630| 74 68 65 20 63 6f 6d 70 | 6f 6e 65 6e 74 2e 20 59 |the comp|onent. Y|
|00003640| 6f 75 20 63 61 6e 20 74 | 68 65 6e 20 75 73 65 20 |ou can t|hen use |
|00003650| 74 68 61 74 20 63 6f 6e | 6e 65 63 74 69 6f 6e 20 |that con|nection |
|00003660| 74 6f 20 65 6d 70 6c 6f | 79 20 74 68 65 20 73 65 |to emplo|y the se|
|00003670| 72 76 69 63 65 73 20 6f | 66 20 74 68 65 20 73 65 |rvices o|f the se|
|00003680| 6c 65 63 74 65 64 20 63 | 6f 6d 70 6f 6e 65 6e 74 |lected c|omponent|
|00003690| 2e 0d 54 68 69 73 20 63 | 6f 64 65 20 64 65 6d 6f |..This c|ode demo|
|000036a0| 6e 73 74 72 61 74 65 73 | 20 74 68 65 20 75 73 65 |nstrates| the use|
|000036b0| 20 6f 66 20 74 68 65 20 | 4f 70 65 6e 44 65 66 61 | of the |OpenDefa|
|000036c0| 75 6c 74 43 6f 6d 70 6f | 6e 65 6e 74 20 66 75 6e |ultCompo|nent fun|
|000036d0| 63 74 69 6f 6e 2e 20 54 | 68 65 20 63 6f 64 65 20 |ction. T|he code |
|000036e0| 6f 70 65 6e 73 20 61 20 | 63 6f 6e 6e 65 63 74 69 |opens a |connecti|
|000036f0| 6f 6e 20 74 6f 20 61 20 | 63 6f 6d 70 6f 6e 65 6e |on to a |componen|
|00003700| 74 20 6f 66 20 74 79 70 | 65 20 27 64 72 61 77 27 |t of typ|e 'draw'|
|00003710| 20 61 6e 64 20 73 75 62 | 74 79 70 65 20 27 6f 76 | and sub|type 'ov|
|00003720| 61 6c 27 d1 61 20 64 72 | 61 77 69 6e 67 20 63 6f |al'.a dr|awing co|
|00003730| 6d 70 6f 6e 65 6e 74 20 | 74 68 61 74 20 64 72 61 |mponent |that dra|
|00003740| 77 73 20 61 6e 20 6f 76 | 61 6c 2e 0d 56 41 52 0d |ws an ov|al..VAR.|
|00003750| 09 61 44 72 61 77 4f 76 | 61 6c 43 6f 6d 70 3a 20 |.aDrawOv|alComp: |
|00003760| 43 6f 6d 70 6f 6e 65 6e | 74 49 6e 73 74 61 6e 63 |Componen|tInstanc|
|00003770| 65 3b 0d 0d 09 61 44 72 | 61 77 4f 76 61 6c 43 6f |e;...aDr|awOvalCo|
|00003780| 6d 70 20 3a 3d 20 4f 70 | 65 6e 44 65 66 61 75 6c |mp := Op|enDefaul|
|00003790| 74 43 6f 6d 70 6f 6e 65 | 6e 74 28 27 64 72 61 77 |tCompone|nt('draw|
|000037a0| 27 2c 20 27 6f 76 61 6c | 27 29 3b 0d 49 66 20 69 |', 'oval|');.If i|
|000037b0| 74 20 63 61 6e 6e 6f 74 | 20 66 69 6e 64 20 6f 72 |t cannot| find or|
|000037c0| 20 6f 70 65 6e 20 61 20 | 63 6f 6d 70 6f 6e 65 6e | open a |componen|
|000037d0| 74 20 6f 66 20 74 68 65 | 20 73 70 65 63 69 66 69 |t of the| specifi|
|000037e0| 65 64 20 74 79 70 65 2d | 73 75 62 74 79 70 65 2c |ed type-|subtype,|
|000037f0| 20 74 68 65 20 4f 70 65 | 6e 44 65 66 61 75 6c 74 | the Ope|nDefault|
|00003800| 43 6f 6d 70 6f 6e 65 6e | 74 20 66 75 6e 63 74 69 |Componen|t functi|
|00003810| 6f 6e 20 72 65 74 75 72 | 6e 73 20 61 20 66 75 6e |on retur|ns a fun|
|00003820| 63 74 69 6f 6e 20 72 65 | 73 75 6c 74 20 6f 66 20 |ction re|sult of |
|00003830| 4e 49 4c 2e 20 0d 54 6f | 20 6f 70 65 6e 20 61 20 |NIL. .To| open a |
|00003840| 63 6f 6e 6e 65 63 74 69 | 6f 6e 20 74 6f 20 61 20 |connecti|on to a |
|00003850| 63 6f 6d 70 6f 6e 65 6e | 74 20 77 69 74 68 20 61 |componen|t with a|
|00003860| 20 73 70 65 63 69 66 69 | 63 20 74 79 70 65 2d 73 | specifi|c type-s|
|00003870| 75 62 74 79 70 65 2d 6d | 61 6e 75 66 61 63 74 75 |ubtype-m|anufactu|
|00003880| 72 65 72 20 63 6f 64 65 | 20 6f 72 20 77 69 74 68 |rer code| or with|
|00003890| 20 6f 74 68 65 72 20 73 | 70 65 63 69 66 69 65 64 | other s|pecified|
|000038a0| 20 63 68 61 72 61 63 74 | 65 72 69 73 74 69 63 73 | charact|eristics|
|000038b0| 2c 20 66 69 72 73 74 20 | 75 73 65 20 74 68 65 20 |, first |use the |
|000038c0| 46 69 6e 64 4e 65 78 74 | 43 6f 6d 70 6f 6e 65 6e |FindNext|Componen|
|000038d0| 74 20 66 75 6e 63 74 69 | 6f 6e 20 74 6f 20 66 69 |t functi|on to fi|
|000038e0| 6e 64 20 74 68 65 20 64 | 65 73 69 72 65 64 20 63 |nd the d|esired c|
|000038f0| 6f 6d 70 6f 6e 65 6e 74 | 2c 20 74 68 65 6e 20 6f |omponent|, then o|
|00003900| 70 65 6e 20 74 68 65 20 | 63 6f 6d 70 6f 6e 65 6e |pen the |componen|
|00003910| 74 20 75 73 69 6e 67 20 | 74 68 65 20 4f 70 65 6e |t using |the Open|
|00003920| 43 6f 6d 70 6f 6e 65 6e | 74 20 66 75 6e 63 74 69 |Componen|t functi|
|00003930| 6f 6e 2e 20 54 68 65 73 | 65 20 6f 70 65 72 61 74 |on. Thes|e operat|
|00003940| 69 6f 6e 73 20 61 72 65 | 20 64 65 73 63 72 69 62 |ions are| describ|
|00003950| 65 64 20 69 6e 20 74 68 | 65 20 6e 65 78 74 20 74 |ed in th|e next t|
|00003960| 77 6f 20 73 65 63 74 69 | 6f 6e 73 2e 0d 46 69 6e |wo secti|ons..Fin|
|00003970| 64 69 6e 67 20 61 20 53 | 70 65 63 69 66 69 63 20 |ding a S|pecific |
|00003980| 43 6f 6d 70 6f 6e 65 6e | 74 0d 0d 49 66 20 79 6f |Componen|t..If yo|
|00003990| 75 20 61 72 65 20 69 6e | 74 65 72 65 73 74 65 64 |u are in|terested|
|000039a0| 20 69 6e 20 61 73 73 65 | 72 74 69 6e 67 20 67 72 | in asse|rting gr|
|000039b0| 65 61 74 65 72 20 63 6f | 6e 74 72 6f 6c 20 6f 76 |eater co|ntrol ov|
|000039c0| 65 72 20 74 68 65 20 73 | 65 6c 65 63 74 69 6f 6e |er the s|election|
|000039d0| 20 6f 66 20 61 20 63 6f | 6d 70 6f 6e 65 6e 74 2c | of a co|mponent,|
|000039e0| 20 79 6f 75 20 63 61 6e | 20 75 73 65 20 74 68 65 | you can| use the|
|000039f0| 20 43 6f 6d 70 6f 6e 65 | 6e 74 20 4d 61 6e 61 67 | Compone|nt Manag|
|00003a00| 65 72 20 74 6f 20 66 69 | 6e 64 20 61 20 63 6f 6d |er to fi|nd a com|
|00003a10| 70 6f 6e 65 6e 74 20 74 | 68 61 74 20 70 72 6f 76 |ponent t|hat prov|
|00003a20| 69 64 65 73 20 61 20 73 | 70 65 63 69 66 69 65 64 |ides a s|pecified|
|00003a30| 20 73 65 72 76 69 63 65 | 2e 20 46 6f 72 20 65 78 | service|. For ex|
|00003a40| 61 6d 70 6c 65 2c 20 79 | 6f 75 20 63 61 6e 20 75 |ample, y|ou can u|
|00003a50| 73 65 20 74 68 65 20 46 | 69 6e 64 4e 65 78 74 43 |se the F|indNextC|
|00003a60| 6f 6d 70 6f 6e 65 6e 74 | 20 66 75 6e 63 74 69 6f |omponent| functio|
|00003a70| 6e 20 69 6e 20 61 20 6c | 6f 6f 70 20 74 6f 20 72 |n in a l|oop to r|
|00003a80| 65 74 72 69 65 76 65 20 | 69 6e 66 6f 72 6d 61 74 |etrieve |informat|
|00003a90| 69 6f 6e 20 61 62 6f 75 | 74 20 61 6c 6c 20 74 68 |ion abou|t all th|
|00003aa0| 65 20 63 6f 6d 70 6f 6e | 65 6e 74 73 20 74 68 61 |e compon|ents tha|
|00003ab0| 74 20 61 72 65 20 72 65 | 67 69 73 74 65 72 65 64 |t are re|gistered|
|00003ac0| 20 6f 6e 20 61 20 67 69 | 76 65 6e 20 63 6f 6d 70 | on a gi|ven comp|
|00003ad0| 75 74 65 72 2e 20 45 61 | 63 68 20 74 69 6d 65 20 |uter. Ea|ch time |
|00003ae0| 79 6f 75 20 63 61 6c 6c | 20 74 68 69 73 20 66 75 |you call| this fu|
|00003af0| 6e 63 74 69 6f 6e 20 74 | 68 65 20 43 6f 6d 70 6f |nction t|he Compo|
|00003b00| 6e 65 6e 74 20 4d 61 6e | 61 67 65 72 20 72 65 74 |nent Man|ager ret|
|00003b10| 75 72 6e 73 20 69 6e 66 | 6f 72 6d 61 74 69 6f 6e |urns inf|ormation|
|00003b20| 20 61 62 6f 75 74 20 61 | 20 73 69 6e 67 6c 65 20 | about a| single |
|00003b30| 63 6f 6d 70 6f 6e 65 6e | 74 2e 20 59 6f 75 20 63 |componen|t. You c|
|00003b40| 61 6e 20 6f 62 74 61 69 | 6e 20 61 20 63 6f 75 6e |an obtai|n a coun|
|00003b50| 74 20 6f 66 20 61 6c 6c | 20 74 68 65 20 63 6f 6d |t of all| the com|
|00003b60| 70 6f 6e 65 6e 74 73 20 | 6f 6e 20 61 20 67 69 76 |ponents |on a giv|
|00003b70| 65 6e 20 63 6f 6d 70 75 | 74 65 72 20 62 79 20 63 |en compu|ter by c|
|00003b80| 61 6c 6c 69 6e 67 20 74 | 68 65 20 43 6f 75 6e 74 |alling t|he Count|
|00003b90| 43 6f 6d 70 6f 6e 65 6e | 74 73 20 66 75 6e 63 74 |Componen|ts funct|
|00003ba0| 69 6f 6e 2e 20 42 6f 74 | 68 20 6f 66 20 74 68 65 |ion. Bot|h of the|
|00003bb0| 73 65 20 66 75 6e 63 74 | 69 6f 6e 73 20 61 6c 6c |se funct|ions all|
|00003bc0| 6f 77 20 79 6f 75 20 74 | 6f 20 73 70 65 63 69 66 |ow you t|o specif|
|00003bd0| 79 20 73 65 61 72 63 68 | 20 63 72 69 74 65 72 69 |y search| criteri|
|00003be0| 61 2c 20 66 6f 72 20 65 | 78 61 6d 70 6c 65 2c 20 |a, for e|xample, |
|00003bf0| 62 79 20 63 6f 6d 70 6f | 6e 65 6e 74 20 74 79 70 |by compo|nent typ|
|00003c00| 65 20 61 6e 64 20 73 75 | 62 74 79 70 65 2c 20 6f |e and su|btype, o|
|00003c10| 72 20 62 79 20 6d 61 6e | 75 66 61 63 74 75 72 65 |r by man|ufacture|
|00003c20| 72 2e 20 42 79 20 75 73 | 69 6e 67 20 74 68 65 73 |r. By us|ing thes|
|00003c30| 65 20 63 72 69 74 65 72 | 69 61 20 74 6f 20 6e 61 |e criter|ia to na|
|00003c40| 72 72 6f 77 20 79 6f 75 | 72 20 73 65 61 72 63 68 |rrow you|r search|
|00003c50| 2c 20 79 6f 75 20 63 61 | 6e 20 71 75 69 63 6b 6c |, you ca|n quickl|
|00003c60| 79 20 61 6e 64 20 65 61 | 73 69 6c 79 20 66 69 6e |y and ea|sily fin|
|00003c70| 64 20 61 20 63 6f 6d 70 | 6f 6e 65 6e 74 20 74 68 |d a comp|onent th|
|00003c80| 61 74 20 6d 65 65 74 73 | 20 79 6f 75 72 20 6e 65 |at meets| your ne|
|00003c90| 65 64 73 2e 0d 59 6f 75 | 20 73 70 65 63 69 66 79 |eds..You| specify|
|00003ca0| 20 74 68 65 20 73 65 61 | 72 63 68 20 63 72 69 74 | the sea|rch crit|
|00003cb0| 65 72 69 61 20 66 6f 72 | 20 74 68 65 20 63 6f 6d |eria for| the com|
|00003cc0| 70 6f 6e 65 6e 74 20 75 | 73 69 6e 67 20 61 20 63 |ponent u|sing a c|
|00003cd0| 6f 6d 70 6f 6e 65 6e 74 | 20 64 65 73 63 72 69 70 |omponent| descrip|
|00003ce0| 74 69 6f 6e 20 72 65 63 | 6f 72 64 2e 20 41 20 63 |tion rec|ord. A c|
|00003cf0| 6f 6d 70 6f 6e 65 6e 74 | 20 64 65 73 63 72 69 70 |omponent| descrip|
|00003d00| 74 69 6f 6e 20 72 65 63 | 6f 72 64 20 69 73 20 64 |tion rec|ord is d|
|00003d10| 65 66 69 6e 65 64 20 62 | 79 20 74 68 65 20 43 6f |efined b|y the Co|
|00003d20| 6d 70 6f 6e 65 6e 74 44 | 65 73 63 72 69 70 74 69 |mponentD|escripti|
|00003d30| 6f 6e 20 64 61 74 61 20 | 74 79 70 65 2e 20 46 6f |on data |type. Fo|
|00003d40| 72 20 6d 6f 72 65 20 69 | 6e 66 6f 72 6d 61 74 69 |r more i|nformati|
|00003d50| 6f 6e 20 6f 6e 20 74 68 | 65 20 66 69 65 6c 64 73 |on on th|e fields|
|00003d60| 20 6f 66 20 74 68 69 73 | 20 72 65 63 6f 72 64 2c | of this| record,|
|00003d70| 20 73 65 65 20 d2 54 68 | 65 20 43 6f 6d 70 6f 6e | see .Th|e Compon|
|00003d80| 65 6e 74 20 44 65 73 63 | 72 69 70 74 69 6f 6e 20 |ent Desc|ription |
|00003d90| 52 65 63 6f 72 64 d3 20 | 62 65 67 69 6e 6e 69 6e |Record. |beginnin|
|00003da0| 67 20 6f 6e 20 70 61 67 | 65 20 31 2d 33 36 2e 0d |g on pag|e 1-36..|
|00003db0| 54 59 50 45 09 09 0d 09 | 20 43 6f 6d 70 6f 6e 65 |TYPE....| Compone|
|00003dc0| 6e 74 44 65 73 63 72 69 | 70 74 69 6f 6e 20 3d 20 |ntDescri|ption = |
|00003dd0| 0d 09 09 52 45 43 4f 52 | 44 0d 09 09 09 63 6f 6d |...RECOR|D....com|
|00003de0| 70 6f 6e 65 6e 74 54 79 | 70 65 3a 09 09 09 09 09 |ponentTy|pe:.....|
|00003df0| 20 09 09 09 4f 53 54 79 | 70 65 3b 09 09 09 09 7b | ...OSTy|pe;....{|
|00003e00| 74 79 70 65 7d 0d 09 09 | 09 63 6f 6d 70 6f 6e 65 |type}...|.compone|
|00003e10| 6e 74 53 75 62 54 79 70 | 65 3a 09 09 09 09 09 09 |ntSubTyp|e:......|
|00003e20| 20 09 09 4f 53 54 79 70 | 65 3b 09 09 09 09 7b 73 | ..OSTyp|e;....{s|
|00003e30| 75 62 74 79 70 65 7d 0d | 09 09 09 63 6f 6d 70 6f |ubtype}.|...compo|
|00003e40| 6e 65 6e 74 4d 61 6e 75 | 66 61 63 74 75 72 65 72 |nentManu|facturer|
|00003e50| 3a 09 09 09 09 09 09 09 | 09 4f 53 54 79 70 65 3b |:.......|.OSType;|
|00003e60| 09 09 09 09 7b 6d 61 6e | 75 66 61 63 74 75 72 65 |....{man|ufacture|
|00003e70| 72 7d 0d 09 09 09 63 6f | 6d 70 6f 6e 65 6e 74 46 |r}....co|mponentF|
|00003e80| 6c 61 67 73 3a 09 09 09 | 09 09 09 20 09 09 4c 6f |lags:...|... ..Lo|
|00003e90| 6e 67 49 6e 74 3b 09 09 | 09 09 7b 63 6f 6e 74 72 |ngInt;..|..{contr|
|00003ea0| 6f 6c 20 66 6c 61 67 73 | 7d 0d 09 09 09 63 6f 6d |ol flags|}....com|
|00003eb0| 70 6f 6e 65 6e 74 46 6c | 61 67 73 4d 61 73 6b 3a |ponentFl|agsMask:|
|00003ec0| 09 09 09 09 09 09 09 09 | 4c 6f 6e 67 49 6e 74 3b |........|LongInt;|
|00003ed0| 09 09 09 09 7b 6d 61 73 | 6b 20 66 6f 72 20 66 6c |....{mas|k for fl|
|00003ee0| 61 67 73 7d 0d 09 09 45 | 4e 44 3b 0d 42 79 20 64 |ags}...E|ND;.By d|
|00003ef0| 65 66 61 75 6c 74 2c 20 | 74 68 65 20 43 6f 6d 70 |efault, |the Comp|
|00003f00| 6f 6e 65 6e 74 20 4d 61 | 6e 61 67 65 72 20 63 6f |onent Ma|nager co|
|00003f10| 6e 73 69 64 65 72 73 20 | 61 6c 6c 20 66 69 65 6c |nsiders |all fiel|
|00003f20| 64 73 20 6f 66 20 74 68 | 65 20 63 6f 6d 70 6f 6e |ds of th|e compon|
|00003f30| 65 6e 74 20 64 65 73 63 | 72 69 70 74 69 6f 6e 20 |ent desc|ription |
|00003f40| 72 65 63 6f 72 64 20 77 | 68 65 6e 20 70 65 72 66 |record w|hen perf|
|00003f50| 6f 72 6d 69 6e 67 20 61 | 20 73 65 61 72 63 68 2e |orming a| search.|
|00003f60| 20 59 6f 75 72 20 61 70 | 70 6c 69 63 61 74 69 6f | Your ap|plicatio|
|00003f70| 6e 20 63 61 6e 20 6f 76 | 65 72 72 69 64 65 20 74 |n can ov|erride t|
|00003f80| 68 65 20 64 65 66 61 75 | 6c 74 20 62 65 68 61 76 |he defau|lt behav|
|00003f90| 69 6f 72 20 6f 66 20 77 | 68 69 63 68 20 66 69 65 |ior of w|hich fie|
|00003fa0| 6c 64 73 20 74 68 65 20 | 43 6f 6d 70 6f 6e 65 6e |lds the |Componen|
|00003fb0| 74 20 4d 61 6e 61 67 65 | 72 20 63 6f 6e 73 69 64 |t Manage|r consid|
|00003fc0| 65 72 73 20 66 6f 72 20 | 61 20 73 65 61 72 63 68 |ers for |a search|
|00003fd0| 2e 20 53 70 65 63 69 66 | 79 20 30 20 69 6e 20 61 |. Specif|y 0 in a|
|00003fe0| 6e 79 20 66 69 65 6c 64 | 20 6f 66 20 74 68 65 20 |ny field| of the |
|00003ff0| 63 6f 6d 70 6f 6e 65 6e | 74 20 64 65 73 63 72 69 |componen|t descri|
|00004000| 70 74 69 6f 6e 20 72 65 | 63 6f 72 64 20 74 6f 20 |ption re|cord to |
|00004010| 70 72 65 76 65 6e 74 20 | 74 68 65 20 43 6f 6d 70 |prevent |the Comp|
|00004020| 6f 6e 65 6e 74 20 4d 61 | 6e 61 67 65 72 20 66 72 |onent Ma|nager fr|
|00004030| 6f 6d 20 63 6f 6e 73 69 | 64 65 72 69 6e 67 20 74 |om consi|dering t|
|00004040| 68 65 20 69 6e 66 6f 72 | 6d 61 74 69 6f 6e 20 69 |he infor|mation i|
|00004050| 6e 20 74 68 61 74 20 66 | 69 65 6c 64 20 77 68 65 |n that f|ield whe|
|00004060| 6e 20 70 65 72 66 6f 72 | 6d 69 6e 67 20 74 68 65 |n perfor|ming the|
|00004070| 20 73 65 61 72 63 68 2e | 0d 4c 69 73 74 69 6e 67 | search.|.Listing|
|00004080| 20 31 2d 31 20 73 68 6f | 77 73 20 61 6e 20 61 70 | 1-1 sho|ws an ap|
|00004090| 70 6c 69 63 61 74 69 6f | 6e 2d 64 65 66 69 6e 65 |plicatio|n-define|
|000040a0| 64 20 70 72 6f 63 65 64 | 75 72 65 2c 20 4d 79 46 |d proced|ure, MyF|
|000040b0| 69 6e 64 56 69 64 65 6f | 43 6f 6d 70 6f 6e 65 6e |indVideo|Componen|
|000040c0| 74 2c 20 74 68 61 74 20 | 66 69 6c 6c 73 20 6f 75 |t, that |fills ou|
|000040d0| 74 20 61 20 63 6f 6d 70 | 6f 6e 65 6e 74 20 64 65 |t a comp|onent de|
|000040e0| 73 63 72 69 70 74 69 6f | 6e 20 72 65 63 6f 72 64 |scriptio|n record|
|000040f0| 20 74 6f 20 73 70 65 63 | 69 66 79 20 74 68 65 20 | to spec|ify the |
|00004100| 73 65 61 72 63 68 20 63 | 72 69 74 65 72 69 61 20 |search c|riteria |
|00004110| 66 6f 72 20 74 68 65 20 | 64 65 73 69 72 65 64 20 |for the |desired |
|00004120| 63 6f 6d 70 6f 6e 65 6e | 74 2e 20 54 68 65 20 4d |componen|t. The M|
|00004130| 79 46 69 6e 64 56 69 64 | 65 6f 43 6f 6d 70 6f 6e |yFindVid|eoCompon|
|00004140| 65 6e 74 20 70 72 6f 63 | 65 64 75 72 65 20 74 68 |ent proc|edure th|
|00004150| 65 6e 20 75 73 65 73 20 | 74 68 65 20 46 69 6e 64 |en uses |the Find|
|00004160| 4e 65 78 74 43 6f 6d 70 | 6f 6e 65 6e 74 20 66 75 |NextComp|onent fu|
|00004170| 6e 63 74 69 6f 6e 20 74 | 6f 20 72 65 74 75 72 6e |nction t|o return|
|00004180| 20 74 68 65 20 66 69 72 | 73 74 20 63 6f 6d 70 6f | the fir|st compo|
|00004190| 6e 65 6e 74 20 77 69 74 | 68 20 74 68 65 20 73 70 |nent wit|h the sp|
|000041a0| 65 63 69 66 69 65 64 20 | 63 68 61 72 61 63 74 65 |ecified |characte|
|000041b0| 72 69 73 74 69 63 73 3b | 20 69 6e 20 74 68 69 73 |ristics;| in this|
|000041c0| 20 65 78 61 6d 70 6c 65 | 2c 20 61 6e 79 20 63 6f | example|, any co|
|000041d0| 6d 70 6f 6e 65 6e 74 20 | 77 69 74 68 20 74 68 65 |mponent |with the|
|000041e0| 20 74 79 70 65 20 56 69 | 64 65 6f 44 69 67 69 74 | type Vi|deoDigit|
|000041f0| 69 7a 65 72 43 6f 6d 70 | 6f 6e 65 6e 74 54 79 70 |izerComp|onentTyp|
|00004200| 65 2e 20 0d 4c 69 73 74 | 69 6e 67 20 31 2d 31 09 |e. .List|ing 1-1.|
|00004210| 46 69 6e 64 69 6e 67 20 | 61 20 63 6f 6d 70 6f 6e |Finding |a compon|
|00004220| 65 6e 74 0d 0d 50 52 4f | 43 45 44 55 52 45 20 4d |ent..PRO|CEDURE M|
|00004230| 79 46 69 6e 64 56 69 64 | 65 6f 43 6f 6d 70 6f 6e |yFindVid|eoCompon|
|00004240| 65 6e 74 28 56 41 52 20 | 76 69 64 65 6f 43 6f 6d |ent(VAR |videoCom|
|00004250| 70 49 44 3a 20 43 6f 6d | 70 6f 6e 65 6e 74 29 3b |pID: Com|ponent);|
|00004260| 0d 56 41 52 20 0d 09 76 | 69 64 65 6f 44 65 73 63 |.VAR ..v|ideoDesc|
|00004270| 3a 20 43 6f 6d 70 6f 6e | 65 6e 74 44 65 73 63 72 |: Compon|entDescr|
|00004280| 69 70 74 69 6f 6e 3b 0d | 42 45 47 49 4e 0d 09 7b |iption;.|BEGIN..{|
|00004290| 66 69 6e 64 20 61 20 76 | 69 64 65 6f 20 64 69 67 |find a v|ideo dig|
|000042a0| 69 74 69 7a 65 72 20 63 | 6f 6d 70 6f 6e 65 6e 74 |itizer c|omponent|
|000042b0| 7d 09 20 20 09 0d 09 76 | 69 64 65 6f 44 65 73 63 |}. ...v|ideoDesc|
|000042c0| 2e 63 6f 6d 70 6f 6e 65 | 6e 74 54 79 70 65 20 3a |.compone|ntType :|
|000042d0| 3d 20 56 69 64 65 6f 44 | 69 67 69 74 69 7a 65 72 |= VideoD|igitizer|
|000042e0| 43 6f 6d 70 6f 6e 65 6e | 74 54 79 70 65 3b 0d 09 |Componen|tType;..|
|000042f0| 76 69 64 65 6f 44 65 73 | 63 2e 63 6f 6d 70 6f 6e |videoDes|c.compon|
|00004300| 65 6e 74 53 75 62 54 79 | 70 65 20 3a 3d 20 4f 53 |entSubTy|pe := OS|
|00004310| 54 79 70 65 28 30 29 3b | 09 09 09 09 09 09 09 09 |Type(0);|........|
|00004320| 09 09 09 09 09 09 09 7b | 61 6e 79 20 73 75 62 74 |.......{|any subt|
|00004330| 79 70 65 7d 0d 09 76 69 | 64 65 6f 44 65 73 63 2e |ype}..vi|deoDesc.|
|00004340| 63 6f 6d 70 6f 6e 65 6e | 74 4d 61 6e 75 66 61 63 |componen|tManufac|
|00004350| 74 75 72 65 72 09 3a 3d | 20 4f 53 54 79 70 65 28 |turer.:=| OSType(|
|00004360| 30 29 3b 09 09 09 09 09 | 09 09 09 09 09 09 09 09 |0);.....|........|
|00004370| 7b 61 6e 79 20 6d 61 6e | 75 66 61 63 74 75 72 65 |{any man|ufacture|
|00004380| 72 7d 09 09 0d 09 76 69 | 64 65 6f 44 65 73 63 2e |r}....vi|deoDesc.|
|00004390| 63 6f 6d 70 6f 6e 65 6e | 74 46 6c 61 67 73 20 3a |componen|tFlags :|
|000043a0| 3d 20 30 3b 09 09 09 09 | 09 09 09 09 09 09 09 09 |= 0;....|........|
|000043b0| 09 0d 09 76 69 64 65 6f | 44 65 73 63 2e 63 6f 6d |...video|Desc.com|
|000043c0| 70 6f 6e 65 6e 74 46 6c | 61 67 73 4d 61 73 6b 20 |ponentFl|agsMask |
|000043d0| 3a 3d 20 30 3b 09 09 09 | 09 09 09 09 09 09 09 09 |:= 0;...|........|
|000043e0| 09 09 09 0d 09 76 69 64 | 65 6f 43 6f 6d 70 49 44 |.....vid|eoCompID|
|000043f0| 20 3a 3d 20 46 69 6e 64 | 4e 65 78 74 43 6f 6d 70 | := Find|NextComp|
|00004400| 6f 6e 65 6e 74 28 43 6f | 6d 70 6f 6e 65 6e 74 28 |onent(Co|mponent(|
|00004410| 30 29 2c 20 76 69 64 65 | 6f 44 65 73 63 29 3b 20 |0), vide|oDesc); |
|00004420| 09 20 09 09 0d 45 4e 44 | 3b 0d 54 68 65 20 46 69 |. ...END|;.The Fi|
|00004430| 6e 64 4e 65 78 74 43 6f | 6d 70 6f 6e 65 6e 74 20 |ndNextCo|mponent |
|00004440| 66 75 6e 63 74 69 6f 6e | 20 72 65 71 75 69 72 65 |function| require|
|00004450| 73 20 74 77 6f 20 70 61 | 72 61 6d 65 74 65 72 73 |s two pa|rameters|
|00004460| 3a 20 61 20 76 61 6c 75 | 65 20 74 68 61 74 20 69 |: a valu|e that i|
|00004470| 6e 64 69 63 61 74 65 73 | 20 77 68 69 63 68 20 63 |ndicates| which c|
|00004480| 6f 6d 70 6f 6e 65 6e 74 | 20 74 6f 20 62 65 67 69 |omponent| to begi|
|00004490| 6e 20 74 68 65 20 73 65 | 61 72 63 68 20 77 69 74 |n the se|arch wit|
|000044a0| 68 20 61 6e 64 20 61 20 | 63 6f 6d 70 6f 6e 65 6e |h and a |componen|
|000044b0| 74 20 64 65 73 63 72 69 | 70 74 69 6f 6e 20 72 65 |t descri|ption re|
|000044c0| 63 6f 72 64 2e 20 59 6f | 75 20 63 61 6e 20 73 70 |cord. Yo|u can sp|
|000044d0| 65 63 69 66 79 20 30 20 | 69 6e 20 74 68 65 20 66 |ecify 0 |in the f|
|000044e0| 69 72 73 74 20 70 61 72 | 61 6d 65 74 65 72 20 74 |irst par|ameter t|
|000044f0| 6f 20 73 74 61 72 74 20 | 74 68 65 20 73 65 61 72 |o start |the sear|
|00004500| 63 68 20 61 74 20 74 68 | 65 20 62 65 67 69 6e 6e |ch at th|e beginn|
|00004510| 69 6e 67 20 6f 66 20 74 | 68 65 20 63 6f 6d 70 6f |ing of t|he compo|
|00004520| 6e 65 6e 74 20 6c 69 73 | 74 2e 20 41 6c 74 65 72 |nent lis|t. Alter|
|00004530| 6e 61 74 69 76 65 6c 79 | 2c 20 79 6f 75 20 63 61 |natively|, you ca|
|00004540| 6e 20 73 70 65 63 69 66 | 79 20 61 20 63 6f 6d 70 |n specif|y a comp|
|00004550| 6f 6e 65 6e 74 20 69 64 | 65 6e 74 69 66 69 65 72 |onent id|entifier|
|00004560| 20 6f 62 74 61 69 6e 65 | 64 20 66 72 6f 6d 20 61 | obtaine|d from a|
|00004570| 20 70 72 65 76 69 6f 75 | 73 20 63 61 6c 6c 20 74 | previou|s call t|
|00004580| 6f 20 46 69 6e 64 4e 65 | 78 74 43 6f 6d 70 6f 6e |o FindNe|xtCompon|
|00004590| 65 6e 74 2e 0d 54 68 65 | 20 46 69 6e 64 4e 65 78 |ent..The| FindNex|
|000045a0| 74 43 6f 6d 70 6f 6e 65 | 6e 74 20 66 75 6e 63 74 |tCompone|nt funct|
|000045b0| 69 6f 6e 20 72 65 74 75 | 72 6e 73 20 61 20 63 6f |ion retu|rns a co|
|000045c0| 6d 70 6f 6e 65 6e 74 20 | 69 64 65 6e 74 69 66 69 |mponent |identifi|
|000045d0| 65 72 20 74 6f 20 79 6f | 75 72 20 61 70 70 6c 69 |er to yo|ur appli|
|000045e0| 63 61 74 69 6f 6e 2e 20 | 54 68 65 20 72 65 74 75 |cation. |The retu|
|000045f0| 72 6e 65 64 20 63 6f 6d | 70 6f 6e 65 6e 74 20 69 |rned com|ponent i|
|00004600| 64 65 6e 74 69 66 69 65 | 72 20 69 64 65 6e 74 69 |dentifie|r identi|
|00004610| 66 69 65 73 20 61 20 67 | 69 76 65 6e 20 63 6f 6d |fies a g|iven com|
|00004620| 70 6f 6e 65 6e 74 20 74 | 6f 20 74 68 65 20 43 6f |ponent t|o the Co|
|00004630| 6d 70 6f 6e 65 6e 74 20 | 4d 61 6e 61 67 65 72 2e |mponent |Manager.|
|00004640| 20 59 6f 75 20 63 61 6e | 20 75 73 65 20 74 68 69 | You can| use thi|
|00004650| 73 20 69 64 65 6e 74 69 | 66 69 65 72 20 74 6f 20 |s identi|fier to |
|00004660| 72 65 74 72 69 65 76 65 | 20 6d 6f 72 65 20 69 6e |retrieve| more in|
|00004670| 66 6f 72 6d 61 74 69 6f | 6e 20 61 62 6f 75 74 20 |formatio|n about |
|00004680| 74 68 65 20 63 6f 6d 70 | 6f 6e 65 6e 74 20 6f 72 |the comp|onent or|
|00004690| 20 74 6f 20 6f 70 65 6e | 20 61 20 63 6f 6e 6e 65 | to open| a conne|
|000046a0| 63 74 69 6f 6e 20 74 6f | 20 74 68 65 20 63 6f 6d |ction to| the com|
|000046b0| 70 6f 6e 65 6e 74 2e 20 | 54 68 65 20 6e 65 78 74 |ponent. |The next|
|000046c0| 20 74 77 6f 20 73 65 63 | 74 69 6f 6e 73 20 64 65 | two sec|tions de|
|000046d0| 73 63 72 69 62 65 20 74 | 68 65 73 65 20 74 61 73 |scribe t|hese tas|
|000046e0| 6b 73 2e 0d 4f 70 65 6e | 69 6e 67 20 61 20 43 6f |ks..Open|ing a Co|
|000046f0| 6e 6e 65 63 74 69 6f 6e | 20 74 6f 20 61 20 53 70 |nnection| to a Sp|
|00004700| 65 63 69 66 69 63 20 43 | 6f 6d 70 6f 6e 65 6e 74 |ecific C|omponent|
|00004710| 0d 0d 59 6f 75 20 63 61 | 6e 20 6f 70 65 6e 20 61 |..You ca|n open a|
|00004720| 20 63 6f 6e 6e 65 63 74 | 69 6f 6e 20 74 6f 20 61 | connect|ion to a|
|00004730| 20 73 70 65 63 69 66 69 | 63 20 63 6f 6d 70 6f 6e | specifi|c compon|
|00004740| 65 6e 74 20 62 79 20 63 | 61 6c 6c 69 6e 67 20 74 |ent by c|alling t|
|00004750| 68 65 20 4f 70 65 6e 43 | 6f 6d 70 6f 6e 65 6e 74 |he OpenC|omponent|
|00004760| 20 66 75 6e 63 74 69 6f | 6e 20 28 61 6c 74 65 72 | functio|n (alter|
|00004770| 6e 61 74 69 76 65 6c 79 | 2c 20 79 6f 75 20 63 61 |natively|, you ca|
|00004780| 6e 20 75 73 65 20 74 68 | 65 20 4f 70 65 6e 44 65 |n use th|e OpenDe|
|00004790| 66 61 75 6c 74 43 6f 6d | 70 6f 6e 65 6e 74 20 66 |faultCom|ponent f|
|000047a0| 75 6e 63 74 69 6f 6e 2c | 20 61 73 20 64 69 73 63 |unction,| as disc|
|000047b0| 75 73 73 65 64 20 69 6e | 20 d2 4f 70 65 6e 69 6e |ussed in| .Openin|
|000047c0| 67 20 61 20 43 6f 6e 6e | 65 63 74 69 6f 6e 20 74 |g a Conn|ection t|
|000047d0| 6f 20 61 20 44 65 66 61 | 75 6c 74 20 43 6f 6d 70 |o a Defa|ult Comp|
|000047e0| 6f 6e 65 6e 74 d3 20 6f | 6e 20 70 61 67 65 20 31 |onent. o|n page 1|
|000047f0| 2d 37 29 2e 20 59 6f 75 | 72 20 61 70 70 6c 69 63 |-7). You|r applic|
|00004800| 61 74 69 6f 6e 20 6d 75 | 73 74 20 70 72 6f 76 69 |ation mu|st provi|
|00004810| 64 65 20 61 20 63 6f 6d | 70 6f 6e 65 6e 74 20 69 |de a com|ponent i|
|00004820| 64 65 6e 74 69 66 69 65 | 72 20 74 6f 20 74 68 65 |dentifie|r to the|
|00004830| 20 4f 70 65 6e 43 6f 6d | 70 6f 6e 65 6e 74 20 66 | OpenCom|ponent f|
|00004840| 75 6e 63 74 69 6f 6e 2e | 20 59 6f 75 20 67 65 74 |unction.| You get|
|00004850| 20 61 20 63 6f 6d 70 6f | 6e 65 6e 74 20 69 64 65 | a compo|nent ide|
|00004860| 6e 74 69 66 69 65 72 20 | 66 72 6f 6d 20 74 68 65 |ntifier |from the|
|00004870| 20 46 69 6e 64 4e 65 78 | 74 43 6f 6d 70 6f 6e 65 | FindNex|tCompone|
|00004880| 6e 74 20 66 75 6e 63 74 | 69 6f 6e 2c 20 61 73 20 |nt funct|ion, as |
|00004890| 64 65 73 63 72 69 62 65 | 64 20 69 6e 20 74 68 65 |describe|d in the|
|000048a0| 20 70 72 65 76 69 6f 75 | 73 20 73 65 63 74 69 6f | previou|s sectio|
|000048b0| 6e 2e 20 0d 54 68 65 20 | 4f 70 65 6e 43 6f 6d 70 |n. .The |OpenComp|
|000048c0| 6f 6e 65 6e 74 20 66 75 | 6e 63 74 69 6f 6e 20 72 |onent fu|nction r|
|000048d0| 65 74 75 72 6e 73 20 61 | 20 63 6f 6d 70 6f 6e 65 |eturns a| compone|
|000048e0| 6e 74 20 69 6e 73 74 61 | 6e 63 65 20 74 68 61 74 |nt insta|nce that|
|000048f0| 20 69 64 65 6e 74 69 66 | 69 65 73 20 79 6f 75 72 | identif|ies your|
|00004900| 20 63 6f 6e 6e 65 63 74 | 69 6f 6e 20 74 6f 20 74 | connect|ion to t|
|00004910| 68 65 20 63 6f 6d 70 6f | 6e 65 6e 74 2e 20 4c 69 |he compo|nent. Li|
|00004920| 73 74 69 6e 67 20 31 2d | 32 20 73 68 6f 77 73 20 |sting 1-|2 shows |
|00004930| 68 6f 77 20 74 6f 20 75 | 73 65 20 74 68 65 20 4f |how to u|se the O|
|00004940| 70 65 6e 43 6f 6d 70 6f | 6e 65 6e 74 20 66 75 6e |penCompo|nent fun|
|00004950| 63 74 69 6f 6e 20 74 6f | 20 67 61 69 6e 20 61 63 |ction to| gain ac|
|00004960| 63 65 73 73 20 74 6f 20 | 61 20 73 70 65 63 69 66 |cess to |a specif|
|00004970| 69 63 20 63 6f 6d 70 6f | 6e 65 6e 74 2e 20 54 68 |ic compo|nent. Th|
|00004980| 65 20 61 70 70 6c 69 63 | 61 74 69 6f 6e 2d 64 65 |e applic|ation-de|
|00004990| 66 69 6e 65 64 20 70 72 | 6f 63 65 64 75 72 65 20 |fined pr|ocedure |
|000049a0| 4d 79 47 65 74 43 6f 6d | 70 6f 6e 65 6e 74 20 75 |MyGetCom|ponent u|
|000049b0| 73 65 73 20 74 68 65 20 | 4d 79 46 69 6e 64 56 69 |ses the |MyFindVi|
|000049c0| 64 65 6f 43 6f 6d 70 6f | 6e 65 6e 74 20 70 72 6f |deoCompo|nent pro|
|000049d0| 63 65 64 75 72 65 20 28 | 64 65 66 69 6e 65 64 20 |cedure (|defined |
|000049e0| 69 6e 20 4c 69 73 74 69 | 6e 67 20 31 2d 31 29 20 |in Listi|ng 1-1) |
|000049f0| 74 6f 20 66 69 6e 64 20 | 61 20 76 69 64 65 6f 20 |to find |a video |
|00004a00| 64 69 67 69 74 69 7a 65 | 72 20 63 6f 6d 70 6f 6e |digitize|r compon|
|00004a10| 65 6e 74 20 61 6e 64 20 | 74 68 65 6e 20 6f 70 65 |ent and |then ope|
|00004a20| 6e 73 20 74 68 65 20 63 | 6f 6d 70 6f 6e 65 6e 74 |ns the c|omponent|
|00004a30| 2e 0d 4c 69 73 74 69 6e | 67 20 31 2d 32 09 4f 70 |..Listin|g 1-2.Op|
|00004a40| 65 6e 69 6e 67 20 61 20 | 73 70 65 63 69 66 69 63 |ening a |specific|
|00004a50| 20 63 6f 6d 70 6f 6e 65 | 6e 74 0d 0d 50 52 4f 43 | compone|nt..PROC|
|00004a60| 45 44 55 52 45 20 4d 79 | 47 65 74 43 6f 6d 70 6f |EDURE My|GetCompo|
|00004a70| 6e 65 6e 74 0d 09 09 09 | 09 09 09 09 28 56 41 52 |nent....|....(VAR|
|00004a80| 20 76 69 64 65 6f 43 6f | 6d 70 49 6e 73 74 61 6e | videoCo|mpInstan|
|00004a90| 63 65 3a 20 43 6f 6d 70 | 6f 6e 65 6e 74 49 6e 73 |ce: Comp|onentIns|
|00004aa0| 74 61 6e 63 65 29 3b 0d | 56 41 52 0d 09 76 69 64 |tance);.|VAR..vid|
|00004ab0| 65 6f 43 6f 6d 70 49 44 | 09 3a 09 09 09 09 09 09 |eoCompID|.:......|
|00004ac0| 43 6f 6d 70 6f 6e 65 6e | 74 3b 0d 42 45 47 49 4e |Componen|t;.BEGIN|
|00004ad0| 0d 09 7b 66 69 72 73 74 | 20 66 69 6e 64 20 61 20 |..{first| find a |
|00004ae0| 76 69 64 65 6f 20 64 69 | 67 69 74 69 7a 65 72 20 |video di|gitizer |
|00004af0| 63 6f 6d 70 6f 6e 65 6e | 74 7d 09 20 20 09 0d 09 |componen|t}. ...|
|00004b00| 4d 79 46 69 6e 64 56 69 | 64 65 6f 43 6f 6d 70 6f |MyFindVi|deoCompo|
|00004b10| 6e 65 6e 74 28 76 69 64 | 65 6f 43 6f 6d 70 49 44 |nent(vid|eoCompID|
|00004b20| 29 3b 0d 09 7b 6e 6f 77 | 20 6f 70 65 6e 20 69 74 |);..{now| open it|
|00004b30| 7d 0d 09 49 46 20 76 69 | 64 65 6f 43 6f 6d 70 49 |}..IF vi|deoCompI|
|00004b40| 44 20 3c 3e 20 4e 49 4c | 20 54 48 45 4e 0d 09 09 |D <> NIL| THEN...|
|00004b50| 76 69 64 65 6f 43 6f 6d | 70 49 6e 73 74 61 6e 63 |videoCom|pInstanc|
|00004b60| 65 20 3a 3d 20 4f 70 65 | 6e 43 6f 6d 70 6f 6e 65 |e := Ope|nCompone|
|00004b70| 6e 74 28 76 69 64 65 6f | 43 6f 6d 70 49 44 29 3b |nt(video|CompID);|
|00004b80| 0d 45 4e 44 3b 0d 47 65 | 74 74 69 6e 67 20 49 6e |.END;.Ge|tting In|
|00004b90| 66 6f 72 6d 61 74 69 6f | 6e 20 41 62 6f 75 74 20 |formatio|n About |
|00004ba0| 61 20 43 6f 6d 70 6f 6e | 65 6e 74 0d 0d 59 6f 75 |a Compon|ent..You|
|00004bb0| 20 63 61 6e 20 75 73 65 | 20 74 68 65 20 47 65 74 | can use| the Get|
|00004bc0| 43 6f 6d 70 6f 6e 65 6e | 74 49 6e 66 6f 20 66 75 |Componen|tInfo fu|
|00004bd0| 6e 63 74 69 6f 6e 20 74 | 6f 20 72 65 74 72 69 65 |nction t|o retrie|
|00004be0| 76 65 20 69 6e 66 6f 72 | 6d 61 74 69 6f 6e 20 61 |ve infor|mation a|
|00004bf0| 62 6f 75 74 20 61 20 63 | 6f 6d 70 6f 6e 65 6e 74 |bout a c|omponent|
|00004c00| 2c 20 69 6e 63 6c 75 64 | 69 6e 67 20 74 68 65 20 |, includ|ing the |
|00004c10| 63 6f 6d 70 6f 6e 65 6e | 74 20 6e 61 6d 65 2c 20 |componen|t name, |
|00004c20| 69 63 6f 6e 2c 20 61 6e | 64 20 6f 74 68 65 72 20 |icon, an|d other |
|00004c30| 69 6e 66 6f 72 6d 61 74 | 69 6f 6e 2e 20 4c 69 73 |informat|ion. Lis|
|00004c40| 74 69 6e 67 20 31 2d 33 | 20 73 68 6f 77 73 20 61 |ting 1-3| shows a|
|00004c50| 6e 20 61 70 70 6c 69 63 | 61 74 69 6f 6e 2d 64 65 |n applic|ation-de|
|00004c60| 66 69 6e 65 64 20 70 72 | 6f 63 65 64 75 72 65 20 |fined pr|ocedure |
|00004c70| 74 68 61 74 20 72 65 74 | 72 69 65 76 65 73 20 69 |that ret|rieves i|
|00004c80| 6e 66 6f 72 6d 61 74 69 | 6f 6e 20 61 62 6f 75 74 |nformati|on about|
|00004c90| 20 61 20 76 69 64 65 6f | 20 64 69 67 69 74 69 7a | a video| digitiz|
|00004ca0| 65 72 20 63 6f 6d 70 6f | 6e 65 6e 74 2e 0d 4c 69 |er compo|nent..Li|
|00004cb0| 73 74 69 6e 67 20 31 2d | 33 09 47 65 74 74 69 6e |sting 1-|3.Gettin|
|00004cc0| 67 20 69 6e 66 6f 72 6d | 61 74 69 6f 6e 20 61 62 |g inform|ation ab|
|00004cd0| 6f 75 74 20 61 20 63 6f | 6d 70 6f 6e 65 6e 74 0d |out a co|mponent.|
|00004ce0| 0d 50 52 4f 43 45 44 55 | 52 45 20 4d 79 47 65 74 |.PROCEDU|RE MyGet|
|00004cf0| 43 6f 6d 70 49 6e 66 6f | 20 28 63 6f 6d 70 4e 61 |CompInfo| (compNa|
|00004d00| 6d 65 2c 63 6f 6d 70 49 | 6e 66 6f 2c 63 6f 6d 70 |me,compI|nfo,comp|
|00004d10| 49 63 6f 6e 3a 20 48 61 | 6e 64 6c 65 3b 0d 09 09 |Icon: Ha|ndle;...|
|00004d20| 09 09 09 09 09 09 20 56 | 41 52 20 76 69 64 65 6f |...... V|AR video|
|00004d30| 44 65 73 63 3a 20 43 6f | 6d 70 6f 6e 65 6e 74 44 |Desc: Co|mponentD|
|00004d40| 65 73 63 72 69 70 74 69 | 6f 6e 29 3b 0d 56 41 52 |escripti|on);.VAR|
|00004d50| 0d 09 76 69 64 65 6f 43 | 6f 6d 70 49 44 3a 09 09 |..videoC|ompID:..|
|00004d60| 09 09 09 43 6f 6d 70 6f | 6e 65 6e 74 3b 0d 09 6d |...Compo|nent;..m|
|00004d70| 79 45 72 72 3a 20 09 09 | 09 09 09 4f 53 45 72 72 |yErr: ..|...OSErr|
|00004d80| 3b 0d 42 45 47 49 4e 0d | 09 7b 66 69 72 73 74 20 |;.BEGIN.|.{first |
|00004d90| 66 69 6e 64 20 61 20 76 | 69 64 65 6f 20 64 69 67 |find a v|ideo dig|
|00004da0| 69 74 69 7a 65 72 20 63 | 6f 6d 70 6f 6e 65 6e 74 |itizer c|omponent|
|00004db0| 7d 09 20 20 09 0d 09 4d | 79 46 69 6e 64 56 69 64 |}. ...M|yFindVid|
|00004dc0| 65 6f 43 6f 6d 70 6f 6e | 65 6e 74 28 76 69 64 65 |eoCompon|ent(vide|
|00004dd0| 6f 43 6f 6d 70 49 44 29 | 3b 0d 09 7b 6e 6f 77 20 |oCompID)|;..{now |
|00004de0| 67 65 74 20 69 6e 66 6f | 72 6d 61 74 69 6f 6e 20 |get info|rmation |
|00004df0| 61 62 6f 75 74 20 69 74 | 7d 0d 09 49 46 20 76 69 |about it|}..IF vi|
|00004e00| 64 65 6f 43 6f 6d 70 49 | 44 20 3c 3e 20 4e 49 4c |deoCompI|D <> NIL|
|00004e10| 20 54 48 45 4e 0d 09 09 | 6d 79 45 72 72 20 3a 3d | THEN...|myErr :=|
|00004e20| 20 47 65 74 43 6f 6d 70 | 6f 6e 65 6e 74 49 6e 66 | GetComp|onentInf|
|00004e30| 6f 28 76 69 64 65 6f 43 | 6f 6d 70 49 44 2c 20 76 |o(videoC|ompID, v|
|00004e40| 69 64 65 6f 44 65 73 63 | 2c 20 63 6f 6d 70 4e 61 |ideoDesc|, compNa|
|00004e50| 6d 65 2c 0d 09 09 09 09 | 09 09 09 09 09 09 20 20 |me,.....|...... |
|00004e60| 63 6f 6d 70 49 6e 66 6f | 2c 20 63 6f 6d 70 49 63 |compInfo|, compIc|
|00004e70| 6f 6e 29 3b 0d 45 4e 44 | 3b 0d 59 6f 75 20 73 70 |on);.END|;.You sp|
|00004e80| 65 63 69 66 79 20 74 68 | 65 20 63 6f 6d 70 6f 6e |ecify th|e compon|
|00004e90| 65 6e 74 20 69 6e 20 74 | 68 65 20 66 69 72 73 74 |ent in t|he first|
|00004ea0| 20 70 61 72 61 6d 65 74 | 65 72 20 74 6f 20 47 65 | paramet|er to Ge|
|00004eb0| 74 43 6f 6d 70 6f 6e 65 | 6e 74 49 6e 66 6f 2e 20 |tCompone|ntInfo. |
|00004ec0| 59 6f 75 20 73 70 65 63 | 69 66 79 20 74 68 65 20 |You spec|ify the |
|00004ed0| 63 6f 6d 70 6f 6e 65 6e | 74 20 75 73 69 6e 67 20 |componen|t using |
|00004ee0| 65 69 74 68 65 72 20 61 | 20 63 6f 6d 70 6f 6e 65 |either a| compone|
|00004ef0| 6e 74 20 69 64 65 6e 74 | 69 66 69 65 72 20 28 6f |nt ident|ifier (o|
|00004f00| 62 74 61 69 6e 65 64 20 | 66 72 6f 6d 20 46 69 6e |btained |from Fin|
|00004f10| 64 4e 65 78 74 43 6f 6d | 70 6f 6e 65 6e 74 20 6f |dNextCom|ponent o|
|00004f20| 72 20 52 65 67 69 73 74 | 65 72 43 6f 6d 70 6f 6e |r Regist|erCompon|
|00004f30| 65 6e 74 29 20 6f 72 20 | 61 20 63 6f 6d 70 6f 6e |ent) or |a compon|
|00004f40| 65 6e 74 20 69 6e 73 74 | 61 6e 63 65 20 28 6f 62 |ent inst|ance (ob|
|00004f50| 74 61 69 6e 65 64 20 66 | 72 6f 6d 20 4f 70 65 6e |tained f|rom Open|
|00004f60| 44 65 66 61 75 6c 74 43 | 6f 6d 70 6f 6e 65 6e 74 |DefaultC|omponent|
|00004f70| 20 6f 72 20 4f 70 65 6e | 43 6f 6d 70 6f 6e 65 6e | or Open|Componen|
|00004f80| 74 29 2e 0d 54 68 65 20 | 47 65 74 43 6f 6d 70 6f |t)..The |GetCompo|
|00004f90| 6e 65 6e 74 49 6e 66 6f | 20 66 75 6e 63 74 69 6f |nentInfo| functio|
|00004fa0| 6e 20 72 65 74 75 72 6e | 73 20 69 6e 66 6f 72 6d |n return|s inform|
|00004fb0| 61 74 69 6f 6e 20 61 62 | 6f 75 74 20 74 68 65 20 |ation ab|out the |
|00004fc0| 63 6f 6d 70 6f 6e 65 6e | 74 20 69 6e 20 74 68 65 |componen|t in the|
|00004fd0| 20 73 65 63 6f 6e 64 20 | 74 68 72 6f 75 67 68 20 | second |through |
|00004fe0| 66 69 66 74 68 20 70 61 | 72 61 6d 65 74 65 72 73 |fifth pa|rameters|
|00004ff0| 20 6f 66 20 74 68 65 20 | 66 75 6e 63 74 69 6f 6e | of the |function|
|00005000| 2e 20 54 68 65 20 47 65 | 74 43 6f 6d 70 6f 6e 65 |. The Ge|tCompone|
|00005010| 6e 74 49 6e 66 6f 20 66 | 75 6e 63 74 69 6f 6e 20 |ntInfo f|unction |
|00005020| 72 65 74 75 72 6e 73 20 | 69 6e 66 6f 72 6d 61 74 |returns |informat|
|00005030| 69 6f 6e 20 61 62 6f 75 | 74 20 74 68 65 20 63 6f |ion abou|t the co|
|00005040| 6d 70 6f 6e 65 6e 74 20 | 28 73 75 63 68 20 61 73 |mponent |(such as|
|00005050| 20 69 74 73 20 74 79 70 | 65 2c 20 73 75 62 74 79 | its typ|e, subty|
|00005060| 70 65 2c 20 61 6e 64 20 | 6d 61 6e 75 66 61 63 74 |pe, and |manufact|
|00005070| 75 72 65 72 29 20 69 6e | 20 61 20 63 6f 6d 70 6f |urer) in| a compo|
|00005080| 6e 65 6e 74 20 64 65 73 | 63 72 69 70 74 69 6f 6e |nent des|cription|
|00005090| 20 72 65 63 6f 72 64 2e | 20 54 68 65 20 66 75 6e | record.| The fun|
|000050a0| 63 74 69 6f 6e 20 61 6c | 73 6f 20 72 65 74 75 72 |ction al|so retur|
|000050b0| 6e 73 20 74 68 65 20 63 | 6f 6d 70 6f 6e 65 6e 74 |ns the c|omponent|
|000050c0| 20 6e 61 6d 65 2c 20 69 | 63 6f 6e 2c 20 61 6e 64 | name, i|con, and|
|000050d0| 20 6f 74 68 65 72 20 69 | 6e 66 6f 72 6d 61 74 69 | other i|nformati|
|000050e0| 6f 6e 20 74 68 72 6f 75 | 67 68 20 68 61 6e 64 6c |on throu|gh handl|
|000050f0| 65 73 2e 20 59 6f 75 20 | 6d 75 73 74 20 61 6c 6c |es. You |must all|
|00005100| 6f 63 61 74 65 20 74 68 | 65 73 65 20 68 61 6e 64 |ocate th|ese hand|
|00005110| 6c 65 73 20 62 65 66 6f | 72 65 20 63 61 6c 6c 69 |les befo|re calli|
|00005120| 6e 67 20 47 65 74 43 6f | 6d 70 6f 6e 65 6e 74 49 |ng GetCo|mponentI|
|00005130| 6e 66 6f 2e 20 28 41 6c | 74 65 72 6e 61 74 69 76 |nfo. (Al|ternativ|
|00005140| 65 6c 79 20 79 6f 75 20 | 63 61 6e 20 73 70 65 63 |ely you |can spec|
|00005150| 69 66 79 20 4e 49 4c 20 | 69 6e 20 74 68 65 20 63 |ify NIL |in the c|
|00005160| 6f 6d 70 4e 61 6d 65 2c | 20 63 6f 6d 70 49 6e 66 |ompName,| compInf|
|00005170| 6f 2c 20 61 6e 64 20 63 | 6f 6d 70 49 63 6f 6e 20 |o, and c|ompIcon |
|00005180| 70 61 72 61 6d 65 74 65 | 72 73 20 69 66 20 79 6f |paramete|rs if yo|
|00005190| 75 20 64 6f 20 6e 6f 74 | 20 77 61 6e 74 20 74 68 |u do not| want th|
|000051a0| 65 20 69 6e 66 6f 72 6d | 61 74 69 6f 6e 20 72 65 |e inform|ation re|
|000051b0| 74 75 72 6e 65 64 2e 29 | 20 54 68 65 20 69 63 6f |turned.)| The ico|
|000051c0| 6e 20 72 65 74 75 72 6e | 65 64 20 69 6e 20 74 68 |n return|ed in th|
|000051d0| 65 20 63 6f 6d 70 49 63 | 6f 6e 20 70 61 72 61 6d |e compIc|on param|
|000051e0| 65 74 65 72 20 69 73 20 | 61 20 68 61 6e 64 6c 65 |eter is |a handle|
|000051f0| 20 74 6f 20 61 20 62 6c | 61 63 6b 2d 61 6e 64 2d | to a bl|ack-and-|
|00005200| 77 68 69 74 65 20 69 63 | 6f 6e 2e 20 49 66 20 61 |white ic|on. If a|
|00005210| 20 63 6f 6d 70 6f 6e 65 | 6e 74 20 68 61 73 20 61 | compone|nt has a|
|00005220| 6e 20 69 63 6f 6e 20 66 | 61 6d 69 6c 79 2c 20 79 |n icon f|amily, y|
|00005230| 6f 75 20 63 61 6e 20 72 | 65 74 72 69 65 76 65 20 |ou can r|etrieve |
|00005240| 61 20 68 61 6e 64 6c 65 | 20 74 6f 20 69 74 73 20 |a handle| to its |
|00005250| 69 63 6f 6e 20 73 75 69 | 74 65 20 75 73 69 6e 67 |icon sui|te using|
|00005260| 20 47 65 74 43 6f 6d 70 | 6f 6e 65 6e 74 49 63 6f | GetComp|onentIco|
|00005270| 6e 53 75 69 74 65 2e 20 | 20 20 0d 55 73 69 6e 67 |nSuite. | .Using|
|00005280| 20 61 20 43 6f 6d 70 6f | 6e 65 6e 74 0d 0d 4f 6e | a Compo|nent..On|
|00005290| 63 65 20 79 6f 75 20 68 | 61 76 65 20 65 73 74 61 |ce you h|ave esta|
|000052a0| 62 6c 69 73 68 65 64 20 | 61 20 63 6f 6e 6e 65 63 |blished |a connec|
|000052b0| 74 69 6f 6e 20 74 6f 20 | 61 20 63 6f 6d 70 6f 6e |tion to |a compon|
|000052c0| 65 6e 74 2c 20 79 6f 75 | 20 63 61 6e 20 75 73 65 |ent, you| can use|
|000052d0| 20 69 74 73 20 73 65 72 | 76 69 63 65 73 2e 20 0d | its ser|vices. .|
|000052e0| 45 61 63 68 20 74 69 6d | 65 20 79 6f 75 20 63 61 |Each tim|e you ca|
|000052f0| 6c 6c 20 61 20 63 6f 6d | 70 6f 6e 65 6e 74 20 72 |ll a com|ponent r|
|00005300| 6f 75 74 69 6e 65 2c 20 | 79 6f 75 20 6d 75 73 74 |outine, |you must|
|00005310| 20 73 70 65 63 69 66 79 | 20 74 68 65 20 63 6f 6d | specify| the com|
|00005320| 70 6f 6e 65 6e 74 20 69 | 6e 73 74 61 6e 63 65 20 |ponent i|nstance |
|00005330| 74 68 61 74 20 69 64 65 | 6e 74 69 66 69 65 73 20 |that ide|ntifies |
|00005340| 79 6f 75 72 20 63 6f 6e | 6e 65 63 74 69 6f 6e 20 |your con|nection |
|00005350| 61 6e 64 20 70 72 6f 76 | 69 64 65 20 61 6e 79 20 |and prov|ide any |
|00005360| 6f 74 68 65 72 20 70 61 | 72 61 6d 65 74 65 72 73 |other pa|rameters|
|00005370| 20 61 73 20 72 65 71 75 | 69 72 65 64 20 62 79 20 | as requ|ired by |
|00005380| 74 68 65 20 72 6f 75 74 | 69 6e 65 2e 20 0d 46 6f |the rout|ine. .Fo|
|00005390| 72 20 65 78 61 6d 70 6c | 65 2c 20 4c 69 73 74 69 |r exampl|e, Listi|
|000053a0| 6e 67 20 31 2d 34 20 69 | 6c 6c 75 73 74 72 61 74 |ng 1-4 i|llustrat|
|000053b0| 65 73 20 74 68 65 20 75 | 73 65 20 6f 66 20 61 20 |es the u|se of a |
|000053c0| 64 72 61 77 69 6e 67 20 | 63 6f 6d 70 6f 6e 65 6e |drawing |componen|
|000053d0| 74 2e 20 54 68 65 20 61 | 70 70 6c 69 63 61 74 69 |t. The a|pplicati|
|000053e0| 6f 6e 2d 64 65 66 69 6e | 65 64 20 70 72 6f 63 65 |on-defin|ed proce|
|000053f0| 64 75 72 65 20 65 73 74 | 61 62 6c 69 73 68 65 73 |dure est|ablishes|
|00005400| 20 61 20 63 6f 6e 6e 65 | 63 74 69 6f 6e 20 74 6f | a conne|ction to|
|00005410| 20 61 20 64 72 61 77 69 | 6e 67 20 63 6f 6d 70 6f | a drawi|ng compo|
|00005420| 6e 65 6e 74 2c 20 63 61 | 6c 6c 73 20 74 68 65 20 |nent, ca|lls the |
|00005430| 63 6f 6d 70 6f 6e 65 6e | 74 d5 73 20 44 72 61 77 |componen|t.s Draw|
|00005440| 65 72 53 65 74 75 70 20 | 66 75 6e 63 74 69 6f 6e |erSetup |function|
|00005450| 20 74 6f 20 65 73 74 61 | 62 6c 69 73 68 20 74 68 | to esta|blish th|
|00005460| 65 20 72 65 63 74 61 6e | 67 6c 65 20 69 6e 20 77 |e rectan|gle in w|
|00005470| 68 69 63 68 20 74 6f 20 | 64 72 61 77 20 74 68 65 |hich to |draw the|
|00005480| 20 64 65 73 69 72 65 64 | 20 6f 62 6a 65 63 74 2c | desired| object,|
|00005490| 20 61 6e 64 20 74 68 65 | 6e 20 64 72 61 77 73 20 | and the|n draws |
|000054a0| 74 68 65 20 6f 62 6a 65 | 63 74 20 75 73 69 6e 67 |the obje|ct using|
|000054b0| 20 74 68 65 20 44 72 61 | 77 65 72 44 72 61 77 20 | the Dra|werDraw |
|000054c0| 66 75 6e 63 74 69 6f 6e | 2e 0d 4c 69 73 74 69 6e |function|..Listin|
|000054d0| 67 20 31 2d 34 09 55 73 | 69 6e 67 20 61 20 64 72 |g 1-4.Us|ing a dr|
|000054e0| 61 77 69 6e 67 20 63 6f | 6d 70 6f 6e 65 6e 74 0d |awing co|mponent.|
|000054f0| 0d 50 52 4f 43 45 44 55 | 52 45 20 4d 79 44 72 61 |.PROCEDU|RE MyDra|
|00005500| 77 41 6e 4f 76 61 6c 28 | 56 41 52 20 61 44 72 61 |wAnOval(|VAR aDra|
|00005510| 77 4f 76 61 6c 43 6f 6d | 70 3a 20 43 6f 6d 70 6f |wOvalCom|p: Compo|
|00005520| 6e 65 6e 74 49 6e 73 74 | 61 6e 63 65 29 3b 0d 56 |nentInst|ance);.V|
|00005530| 41 52 0d 09 72 3a 09 09 | 09 09 09 52 65 63 74 3b |AR..r:..|...Rect;|
|00005540| 0d 09 72 65 73 75 6c 74 | 3a 09 09 09 09 09 43 6f |..result|:.....Co|
|00005550| 6d 70 6f 6e 65 6e 74 52 | 65 73 75 6c 74 3b 0d 42 |mponentR|esult;.B|
|00005560| 45 47 49 4e 0d 09 7b 6f | 70 65 6e 20 61 20 63 6f |EGIN..{o|pen a co|
|00005570| 6e 6e 65 63 74 69 6f 6e | 20 74 6f 20 61 20 64 72 |nnection| to a dr|
|00005580| 61 77 69 6e 67 20 63 6f | 6d 70 6f 6e 65 6e 74 7d |awing co|mponent}|
|00005590| 0d 09 61 44 72 61 77 4f | 76 61 6c 43 6f 6d 70 20 |..aDrawO|valComp |
|000055a0| 3a 3d 20 4f 70 65 6e 44 | 65 66 61 75 6c 74 43 6f |:= OpenD|efaultCo|
|000055b0| 6d 70 6f 6e 65 6e 74 28 | 27 64 72 61 77 27 2c 20 |mponent(|'draw', |
|000055c0| 27 6f 76 61 6c 27 29 3b | 0d 09 49 46 20 61 44 72 |'oval');|..IF aDr|
|000055d0| 61 77 4f 76 61 6c 43 6f | 6d 70 20 3c 3e 20 4e 49 |awOvalCo|mp <> NI|
|000055e0| 4c 20 54 48 45 4e 0d 09 | 42 45 47 49 4e 0d 09 09 |L THEN..|BEGIN...|
|000055f0| 53 65 74 52 65 63 74 28 | 72 2c 20 34 30 2c 20 34 |SetRect(|r, 40, 4|
|00005600| 30 2c 20 38 30 2c 20 38 | 30 29 3b 09 09 09 09 09 |0, 80, 8|0);.....|
|00005610| 09 09 09 09 09 09 0d 09 | 09 7b 73 65 74 20 75 70 |........|.{set up|
|00005620| 20 72 65 63 74 61 6e 67 | 6c 65 20 66 6f 72 20 6f | rectang|le for o|
|00005630| 76 61 6c 7d 0d 09 09 72 | 65 73 75 6c 74 20 3a 3d |val}...r|esult :=|
|00005640| 20 44 72 61 77 65 72 53 | 65 74 75 70 28 61 44 72 | DrawerS|etup(aDr|
|00005650| 61 77 4f 76 61 6c 43 6f | 6d 70 2c 20 72 29 3b 09 |awOvalCo|mp, r);.|
|00005660| 0d 09 09 49 46 20 72 65 | 73 75 6c 74 20 3d 20 6e |...IF re|sult = n|
|00005670| 6f 45 72 72 20 54 48 45 | 4e 09 09 09 09 09 09 09 |oErr THE|N.......|
|00005680| 09 09 09 09 0d 09 09 09 | 72 65 73 75 6c 74 20 3a |........|result :|
|00005690| 3d 20 44 72 61 77 65 72 | 44 72 61 77 28 61 44 72 |= Drawer|Draw(aDr|
|000056a0| 61 77 4f 76 61 6c 43 6f | 6d 70 29 3b 09 7b 64 72 |awOvalCo|mp);.{dr|
|000056b0| 61 77 20 6f 76 61 6c 7d | 0d 09 45 4e 44 3b 0d 45 |aw oval}|..END;.E|
|000056c0| 4e 44 3b 0d 49 66 20 79 | 6f 75 20 73 70 65 63 69 |ND;.If y|ou speci|
|000056d0| 66 79 20 61 6e 20 69 6e | 76 61 6c 69 64 20 63 6f |fy an in|valid co|
|000056e0| 6e 6e 65 63 74 69 6f 6e | 20 61 73 20 61 20 70 61 |nnection| as a pa|
|000056f0| 72 61 6d 65 74 65 72 20 | 74 6f 20 61 20 63 6f 6d |rameter |to a com|
|00005700| 70 6f 6e 65 6e 74 20 72 | 6f 75 74 69 6e 65 2c 20 |ponent r|outine, |
|00005710| 74 68 65 20 43 6f 6d 70 | 6f 6e 65 6e 74 20 4d 61 |the Comp|onent Ma|
|00005720| 6e 61 67 65 72 20 73 65 | 74 73 20 74 68 65 20 66 |nager se|ts the f|
|00005730| 75 6e 63 74 69 6f 6e 20 | 72 65 73 75 6c 74 20 6f |unction |result o|
|00005740| 66 20 74 68 65 20 63 6f | 6d 70 6f 6e 65 6e 74 20 |f the co|mponent |
|00005750| 72 6f 75 74 69 6e 65 20 | 74 6f 20 62 61 64 43 6f |routine |to badCo|
|00005760| 6d 70 6f 6e 65 6e 74 49 | 6e 73 74 61 6e 63 65 2e |mponentI|nstance.|
|00005770| 0d 45 61 63 68 20 63 6f | 6d 70 6f 6e 65 6e 74 20 |.Each co|mponent |
|00005780| 74 79 70 65 20 73 75 70 | 70 6f 72 74 73 20 61 20 |type sup|ports a |
|00005790| 64 65 66 69 6e 65 64 20 | 73 65 74 20 6f 66 20 66 |defined |set of f|
|000057a0| 75 6e 63 74 69 6f 6e 73 | 2e 20 59 6f 75 20 6d 75 |unctions|. You mu|
|000057b0| 73 74 20 72 65 66 65 72 | 20 74 6f 20 74 68 65 20 |st refer| to the |
|000057c0| 61 70 70 72 6f 70 72 69 | 61 74 65 20 64 6f 63 75 |appropri|ate docu|
|000057d0| 6d 65 6e 74 61 74 69 6f | 6e 20 66 6f 72 20 61 20 |mentatio|n for a |
|000057e0| 64 65 73 63 72 69 70 74 | 69 6f 6e 20 6f 66 20 74 |descript|ion of t|
|000057f0| 68 65 20 66 75 6e 63 74 | 69 6f 6e 73 20 73 75 70 |he funct|ions sup|
|00005800| 70 6f 72 74 65 64 20 62 | 79 20 61 20 63 6f 6d 70 |ported b|y a comp|
|00005810| 6f 6e 65 6e 74 2e 20 59 | 6f 75 20 61 6c 73 6f 20 |onent. Y|ou also |
|00005820| 6e 65 65 64 20 74 6f 20 | 72 65 66 65 72 20 74 6f |need to |refer to|
|00005830| 20 74 68 65 20 63 6f 6d | 70 6f 6e 65 6e 74 d5 73 | the com|ponent.s|
|00005840| 20 64 6f 63 75 6d 65 6e | 74 61 74 69 6f 6e 20 66 | documen|tation f|
|00005850| 6f 72 20 69 6e 66 6f 72 | 6d 61 74 69 6f 6e 20 6f |or infor|mation o|
|00005860| 6e 20 74 68 65 20 61 70 | 70 72 6f 70 72 69 61 74 |n the ap|propriat|
|00005870| 65 20 69 6e 74 65 72 66 | 61 63 65 20 66 69 6c 65 |e interf|ace file|
|00005880| 73 20 77 68 69 63 68 20 | 79 6f 75 20 6d 75 73 74 |s which |you must|
|00005890| 20 69 6e 63 6c 75 64 65 | 20 74 6f 20 75 73 65 20 | include| to use |
|000058a0| 74 68 65 20 63 6f 6d 70 | 6f 6e 65 6e 74 20 28 74 |the comp|onent (t|
|000058b0| 68 65 20 69 6e 74 65 72 | 66 61 63 65 20 66 69 6c |he inter|face fil|
|000058c0| 65 73 20 66 6f 72 20 74 | 68 65 20 64 72 61 77 69 |es for t|he drawi|
|000058d0| 6e 67 20 63 6f 6d 70 6f | 6e 65 6e 74 20 61 72 65 |ng compo|nent are|
|000058e0| 20 73 68 6f 77 6e 20 62 | 65 67 69 6e 6e 69 6e 67 | shown b|eginning|
|000058f0| 20 6f 6e 20 70 61 67 65 | 20 31 2d 32 37 29 2e 20 | on page| 1-27). |
|00005900| 54 68 65 20 63 6f 6d 70 | 6f 6e 65 6e 74 73 20 74 |The comp|onents t|
|00005910| 68 61 74 20 41 70 70 6c | 65 20 70 72 6f 76 69 64 |hat Appl|e provid|
|00005920| 65 73 20 77 69 74 68 20 | 51 75 69 63 6b 54 69 6d |es with |QuickTim|
|00005930| 65 20 61 72 65 20 64 65 | 73 63 72 69 62 65 64 20 |e are de|scribed |
|00005940| 69 6e 20 49 6e 73 69 64 | 65 20 4d 61 63 69 6e 74 |in Insid|e Macint|
|00005950| 6f 73 68 3a 20 51 75 69 | 63 6b 54 69 6d 65 20 43 |osh: Qui|ckTime C|
|00005960| 6f 6d 70 6f 6e 65 6e 74 | 73 2e 20 41 73 20 61 6e |omponent|s. As an|
|00005970| 20 65 78 61 6d 70 6c 65 | 2c 20 64 72 61 77 69 6e | example|, drawin|
|00005980| 67 20 63 6f 6d 70 6f 6e | 65 6e 74 73 20 73 75 70 |g compon|ents sup|
|00005990| 70 6f 72 74 20 74 68 65 | 20 66 6f 6c 6c 6f 77 69 |port the| followi|
|000059a0| 6e 67 20 66 75 6e 63 74 | 69 6f 6e 73 3a 0d 46 55 |ng funct|ions:.FU|
|000059b0| 4e 43 54 49 4f 4e 20 44 | 72 61 77 65 72 53 65 74 |NCTION D|rawerSet|
|000059c0| 75 70 09 28 6d 79 49 6e | 73 74 61 6e 63 65 3a 20 |up.(myIn|stance: |
|000059d0| 43 6f 6d 70 6f 6e 65 6e | 74 49 6e 73 74 61 6e 63 |Componen|tInstanc|
|000059e0| 65 3b 20 0d 09 09 09 09 | 09 09 09 56 41 52 20 72 |e; .....|...VAR r|
|000059f0| 3a 20 52 65 63 74 29 3a | 20 43 6f 6d 70 6f 6e 65 |: Rect):| Compone|
|00005a00| 6e 74 52 65 73 75 6c 74 | 3b 0d 46 55 4e 43 54 49 |ntResult|;.FUNCTI|
|00005a10| 4f 4e 20 44 72 61 77 65 | 72 43 6c 69 63 6b 09 28 |ON Drawe|rClick.(|
|00005a20| 6d 79 49 6e 73 74 61 6e | 63 65 3a 20 43 6f 6d 70 |myInstan|ce: Comp|
|00005a30| 6f 6e 65 6e 74 49 6e 73 | 74 61 6e 63 65 3b 20 0d |onentIns|tance; .|
|00005a40| 09 09 09 09 09 09 09 70 | 3a 20 50 6f 69 6e 74 29 |.......p|: Point)|
|00005a50| 3a 20 43 6f 6d 70 6f 6e | 65 6e 74 52 65 73 75 6c |: Compon|entResul|
|00005a60| 74 3b 0d 46 55 4e 43 54 | 49 4f 4e 20 44 72 61 77 |t;.FUNCT|ION Draw|
|00005a70| 65 72 4d 6f 76 65 20 09 | 28 6d 79 49 6e 73 74 61 |erMove .|(myInsta|
|00005a80| 6e 63 65 3a 20 43 6f 6d | 70 6f 6e 65 6e 74 49 6e |nce: Com|ponentIn|
|00005a90| 73 74 61 6e 63 65 3b 20 | 78 3a 20 49 6e 74 65 67 |stance; |x: Integ|
|00005aa0| 65 72 3b 0d 09 09 09 09 | 09 09 09 79 3a 20 49 6e |er;.....|...y: In|
|00005ab0| 74 65 67 65 72 29 3a 20 | 43 6f 6d 70 6f 6e 65 6e |teger): |Componen|
|00005ac0| 74 52 65 73 75 6c 74 3b | 0d 46 55 4e 43 54 49 4f |tResult;|.FUNCTIO|
|00005ad0| 4e 20 44 72 61 77 65 72 | 44 72 61 77 20 09 28 6d |N Drawer|Draw .(m|
|00005ae0| 79 49 6e 73 74 61 6e 63 | 65 3a 20 43 6f 6d 70 6f |yInstanc|e: Compo|
|00005af0| 6e 65 6e 74 49 6e 73 74 | 61 6e 63 65 29 0d 09 09 |nentInst|ance)...|
|00005b00| 09 09 09 09 09 3a 20 43 | 6f 6d 70 6f 6e 65 6e 74 |.....: C|omponent|
|00005b10| 52 65 73 75 6c 74 3b 0d | 46 55 4e 43 54 49 4f 4e |Result;.|FUNCTION|
|00005b20| 20 44 72 61 77 65 72 45 | 72 61 73 65 09 28 6d 79 | DrawerE|rase.(my|
|00005b30| 49 6e 73 74 61 6e 63 65 | 3a 20 43 6f 6d 70 6f 6e |Instance|: Compon|
|00005b40| 65 6e 74 49 6e 73 74 61 | 6e 63 65 29 0d 09 09 09 |entInsta|nce)....|
|00005b50| 09 09 09 09 3a 20 43 6f | 6d 70 6f 6e 65 6e 74 52 |....: Co|mponentR|
|00005b60| 65 73 75 6c 74 3b 0d 43 | 6c 6f 73 69 6e 67 20 61 |esult;.C|losing a|
|00005b70| 20 43 6f 6e 6e 65 63 74 | 69 6f 6e 20 74 6f 20 61 | Connect|ion to a|
|00005b80| 20 43 6f 6d 70 6f 6e 65 | 6e 74 0d 0d 57 68 65 6e | Compone|nt..When|
|00005b90| 20 79 6f 75 20 66 69 6e | 69 73 68 20 75 73 69 6e | you fin|ish usin|
|00005ba0| 67 20 61 20 63 6f 6d 70 | 6f 6e 65 6e 74 2c 20 79 |g a comp|onent, y|
|00005bb0| 6f 75 20 6d 75 73 74 20 | 63 6c 6f 73 65 20 79 6f |ou must |close yo|
|00005bc0| 75 72 20 63 6f 6e 6e 65 | 63 74 69 6f 6e 20 74 6f |ur conne|ction to|
|00005bd0| 20 74 68 61 74 20 63 6f | 6d 70 6f 6e 65 6e 74 2e | that co|mponent.|
|00005be0| 20 55 73 65 20 74 68 65 | 20 43 6c 6f 73 65 43 6f | Use the| CloseCo|
|00005bf0| 6d 70 6f 6e 65 6e 74 20 | 66 75 6e 63 74 69 6f 6e |mponent |function|
|00005c00| 20 74 6f 20 63 6c 6f 73 | 65 20 74 68 65 20 63 6f | to clos|e the co|
|00005c10| 6e 6e 65 63 74 69 6f 6e | 2e 20 46 6f 72 20 65 78 |nnection|. For ex|
|00005c20| 61 6d 70 6c 65 2c 20 74 | 68 69 73 20 63 6f 64 65 |ample, t|his code|
|00005c30| 20 63 61 6c 6c 73 20 74 | 68 65 20 61 70 70 6c 69 | calls t|he appli|
|00005c40| 63 61 74 69 6f 6e 2d 64 | 65 66 69 6e 65 64 20 70 |cation-d|efined p|
|00005c50| 72 6f 63 65 64 75 72 65 | 20 4d 79 44 72 61 77 41 |rocedure| MyDrawA|
|00005c60| 6e 4f 76 61 6c 20 28 73 | 65 65 20 4c 69 73 74 69 |nOval (s|ee Listi|
|00005c70| 6e 67 20 31 2d 34 29 20 | 77 68 69 63 68 20 6f 70 |ng 1-4) |which op|
|00005c80| 65 6e 73 20 61 20 63 6f | 6e 6e 65 63 74 69 6f 6e |ens a co|nnection|
|00005c90| 20 74 6f 20 61 20 64 72 | 61 77 69 6e 67 20 63 6f | to a dr|awing co|
|00005ca0| 6d 70 6f 6e 65 6e 74 20 | 61 6e 64 20 75 73 65 73 |mponent |and uses|
|00005cb0| 20 74 68 61 74 20 63 6f | 6d 70 6f 6e 65 6e 74 20 | that co|mponent |
|00005cc0| 74 6f 20 64 72 61 77 20 | 61 6e 20 6f 76 61 6c 2e |to draw |an oval.|
|00005cd0| 20 54 68 69 73 20 63 6f | 64 65 20 63 6c 6f 73 65 | This co|de close|
|00005ce0| 73 20 74 68 65 20 6f 76 | 61 6c 20 64 72 61 77 65 |s the ov|al drawe|
|00005cf0| 72 20 63 6f 6d 70 6f 6e | 65 6e 74 20 61 66 74 65 |r compon|ent afte|
|00005d00| 72 20 69 74 20 69 73 20 | 66 69 6e 69 73 68 65 64 |r it is |finished|
|00005d10| 20 75 73 69 6e 67 20 69 | 74 2e 0d 56 41 52 0d 09 | using i|t..VAR..|
|00005d20| 61 44 72 61 77 4f 76 61 | 6c 43 6f 6d 70 3a 20 09 |aDrawOva|lComp: .|
|00005d30| 43 6f 6d 70 6f 6e 65 6e | 74 49 6e 73 74 61 6e 63 |Componen|tInstanc|
|00005d40| 65 3b 0d 09 72 65 73 75 | 6c 74 3a 20 09 09 09 09 |e;..resu|lt: ....|
|00005d50| 09 4f 53 45 72 72 3b 0d | 0d 4d 79 44 72 61 77 41 |.OSErr;.|.MyDrawA|
|00005d60| 6e 4f 76 61 6c 28 61 44 | 72 61 77 4f 76 61 6c 43 |nOval(aD|rawOvalC|
|00005d70| 6f 6d 70 29 3b 20 09 09 | 09 09 09 09 09 09 09 09 |omp); ..|........|
|00005d80| 09 7b 6f 70 65 6e 20 63 | 6f 6d 70 6f 6e 65 6e 74 |.{open c|omponent|
|00005d90| 20 61 6e 64 20 64 72 61 | 77 20 61 6e 20 6f 76 61 | and dra|w an ova|
|00005da0| 6c 7d 0d 72 65 73 75 6c | 74 20 3a 3d 20 44 72 61 |l}.resul|t := Dra|
|00005db0| 77 65 72 45 72 61 73 65 | 28 61 44 72 61 77 4f 76 |werErase|(aDrawOv|
|00005dc0| 61 6c 43 6f 6d 70 29 3b | 09 09 09 09 09 09 09 09 |alComp);|........|
|00005dd0| 09 09 09 09 09 7b 65 72 | 61 73 65 20 74 68 65 20 |.....{er|ase the |
|00005de0| 6f 76 61 6c 7d 0d 72 65 | 73 75 6c 74 20 3a 3d 20 |oval}.re|sult := |
|00005df0| 43 6c 6f 73 65 43 6f 6d | 70 6f 6e 65 6e 74 28 61 |CloseCom|ponent(a|
|00005e00| 44 72 61 77 4f 76 61 6c | 43 6f 6d 70 29 3b 20 7b |DrawOval|Comp); {|
|00005e10| 63 6c 6f 73 65 20 74 68 | 65 20 63 6f 6d 70 6f 6e |close th|e compon|
|00005e20| 65 6e 74 7d 0d 0d 43 72 | 65 61 74 69 6e 67 20 43 |ent}..Cr|eating C|
|00005e30| 6f 6d 70 6f 6e 65 6e 74 | 73 0d 0d 54 68 69 73 20 |omponent|s..This |
|00005e40| 73 65 63 74 69 6f 6e 20 | 64 65 73 63 72 69 62 65 |section |describe|
|00005e50| 73 20 68 6f 77 20 74 6f | 20 63 72 65 61 74 65 20 |s how to| create |
|00005e60| 61 20 63 6f 6d 70 6f 6e | 65 6e 74 20 61 6e 64 20 |a compon|ent and |
|00005e70| 68 6f 77 20 79 6f 75 72 | 20 63 6f 6d 70 6f 6e 65 |how your| compone|
|00005e80| 6e 74 20 69 6e 74 65 72 | 61 63 74 73 20 77 69 74 |nt inter|acts wit|
|00005e90| 68 20 74 68 65 20 43 6f | 6d 70 6f 6e 65 6e 74 20 |h the Co|mponent |
|00005ea0| 4d 61 6e 61 67 65 72 2e | 20 54 68 69 73 20 73 65 |Manager.| This se|
|00005eb0| 63 74 69 6f 6e 20 61 6c | 73 6f 20 64 65 73 63 72 |ction al|so descr|
|00005ec0| 69 62 65 73 20 6d 61 6e | 79 20 6f 66 20 74 68 65 |ibes man|y of the|
|00005ed0| 20 72 6f 75 74 69 6e 65 | 73 20 74 68 61 74 20 74 | routine|s that t|
|00005ee0| 68 65 20 43 6f 6d 70 6f | 6e 65 6e 74 20 4d 61 6e |he Compo|nent Man|
|00005ef0| 61 67 65 72 20 70 72 6f | 76 69 64 65 73 20 74 6f |ager pro|vides to|
|00005f00| 20 68 65 6c 70 20 79 6f | 75 20 6d 61 6e 61 67 65 | help yo|u manage|
|00005f10| 20 79 6f 75 72 20 63 6f | 6d 70 6f 6e 65 6e 74 2e | your co|mponent.|
|00005f20| 20 49 66 20 79 6f 75 20 | 61 72 65 20 64 65 76 65 | If you |are deve|
|00005f30| 6c 6f 70 69 6e 67 20 61 | 20 63 6f 6d 70 6f 6e 65 |loping a| compone|
|00005f40| 6e 74 2c 20 79 6f 75 20 | 73 68 6f 75 6c 64 20 72 |nt, you |should r|
|00005f50| 65 61 64 20 74 68 65 20 | 6d 61 74 65 72 69 61 6c |ead the |material|
|00005f60| 20 69 6e 20 74 68 69 73 | 20 73 65 63 74 69 6f 6e | in this| section|
|00005f70| 2e 20 0d 49 66 20 79 6f | 75 20 61 72 65 20 64 65 |. .If yo|u are de|
|00005f80| 76 65 6c 6f 70 69 6e 67 | 20 61 6e 20 61 70 70 6c |veloping| an appl|
|00005f90| 69 63 61 74 69 6f 6e 20 | 74 68 61 74 20 75 73 65 |ication |that use|
|00005fa0| 73 20 63 6f 6d 70 6f 6e | 65 6e 74 73 2c 20 79 6f |s compon|ents, yo|
|00005fb0| 75 20 6d 61 79 20 66 69 | 6e 64 20 74 68 69 73 20 |u may fi|nd this |
|00005fc0| 6d 61 74 65 72 69 61 6c | 20 69 6e 74 65 72 65 73 |material| interes|
|00005fd0| 74 69 6e 67 2c 20 62 75 | 74 20 79 6f 75 20 64 6f |ting, bu|t you do|
|00005fe0| 20 6e 6f 74 20 6e 65 65 | 64 20 74 6f 20 62 65 20 | not nee|d to be |
|00005ff0| 66 61 6d 69 6c 69 61 72 | 20 77 69 74 68 20 69 74 |familiar| with it|
|00006000| 2e 20 59 6f 75 20 73 68 | 6f 75 6c 64 20 72 65 61 |. You sh|ould rea|
|00006010| 64 20 74 68 65 20 70 72 | 65 63 65 64 69 6e 67 20 |d the pr|eceding |
|00006020| 73 65 63 74 69 6f 6e 2c | 20 d2 55 73 69 6e 67 20 |section,| .Using |
|00006030| 74 68 65 20 43 6f 6d 70 | 6f 6e 65 6e 74 20 4d 61 |the Comp|onent Ma|
|00006040| 6e 61 67 65 72 2c d3 20 | 61 6e 64 20 74 68 65 6e |nager,. |and then|
|00006050| 20 75 73 65 20 74 68 65 | 20 d2 43 6f 6d 70 6f 6e | use the| .Compon|
|00006060| 65 6e 74 20 4d 61 6e 61 | 67 65 72 20 52 65 66 65 |ent Mana|ger Refe|
|00006070| 72 65 6e 63 65 d3 20 73 | 65 63 74 69 6f 6e 20 61 |rence. s|ection a|
|00006080| 73 20 6e 65 65 64 65 64 | 2e 0d 54 68 69 73 20 73 |s needed|..This s|
|00006090| 65 63 74 69 6f 6e 20 64 | 69 73 63 75 73 73 65 73 |ection d|iscusses|
|000060a0| 20 68 6f 77 20 79 6f 75 | 20 63 61 6e 0d 6e 09 73 | how you| can.n.s|
|000060b0| 74 72 75 63 74 75 72 65 | 20 79 6f 75 72 20 63 6f |tructure| your co|
|000060c0| 6d 70 6f 6e 65 6e 74 20 | 0d 6e 09 72 65 73 70 6f |mponent |.n.respo|
|000060d0| 6e 64 20 74 6f 20 72 65 | 71 75 65 73 74 73 20 66 |nd to re|quests f|
|000060e0| 72 6f 6d 20 74 68 65 20 | 43 6f 6d 70 6f 6e 65 6e |rom the |Componen|
|000060f0| 74 20 4d 61 6e 61 67 65 | 72 0d 6e 09 64 65 66 69 |t Manage|r.n.defi|
|00006100| 6e 65 20 74 68 65 20 66 | 75 6e 63 74 69 6f 6e 73 |ne the f|unctions|
|00006110| 20 74 68 61 74 20 61 70 | 70 6c 69 63 61 74 69 6f | that ap|plicatio|
|00006120| 6e 73 20 6d 61 79 20 63 | 61 6c 6c 20 74 6f 20 72 |ns may c|all to r|
|00006130| 65 71 75 65 73 74 20 73 | 65 72 76 69 63 65 20 66 |equest s|ervice f|
|00006140| 72 6f 6d 20 79 6f 75 72 | 20 63 6f 6d 70 6f 6e 65 |rom your| compone|
|00006150| 6e 74 0d 6e 09 6d 61 6e | 61 67 65 20 79 6f 75 72 |nt.n.man|age your|
|00006160| 20 63 6f 6d 70 6f 6e 65 | 6e 74 20 77 69 74 68 20 | compone|nt with |
|00006170| 74 68 65 20 68 65 6c 70 | 20 6f 66 20 74 68 65 20 |the help| of the |
|00006180| 43 6f 6d 70 6f 6e 65 6e | 74 20 4d 61 6e 61 67 65 |Componen|t Manage|
|00006190| 72 0d 6e 09 6d 61 6b 65 | 20 79 6f 75 72 20 63 6f |r.n.make| your co|
|000061a0| 6d 70 6f 6e 65 6e 74 20 | 61 76 61 69 6c 61 62 6c |mponent |availabl|
|000061b0| 65 20 66 6f 72 20 75 73 | 65 20 62 79 20 61 70 70 |e for us|e by app|
|000061c0| 6c 69 63 61 74 69 6f 6e | 73 0d 54 68 69 73 20 73 |lication|s.This s|
|000061d0| 65 63 74 69 6f 6e 20 70 | 72 65 73 65 6e 74 73 20 |ection p|resents |
|000061e0| 73 65 76 65 72 61 6c 20 | 65 78 61 6d 70 6c 65 73 |several |examples|
|000061f0| 20 64 65 6d 6f 6e 73 74 | 72 61 74 69 6e 67 20 68 | demonst|rating h|
|00006200| 6f 77 20 74 6f 20 63 72 | 65 61 74 65 20 63 6f 6d |ow to cr|eate com|
|00006210| 70 6f 6e 65 6e 74 73 20 | 61 6e 64 20 72 65 67 69 |ponents |and regi|
|00006220| 73 74 65 72 20 74 68 65 | 6d 20 77 69 74 68 20 74 |ster the|m with t|
|00006230| 68 65 20 43 6f 6d 70 6f | 6e 65 6e 74 20 4d 61 6e |he Compo|nent Man|
|00006240| 61 67 65 72 2e 20 41 6c | 6c 20 6f 66 20 74 68 65 |ager. Al|l of the|
|00006250| 73 65 20 65 78 61 6d 70 | 6c 65 73 20 61 72 65 20 |se examp|les are |
|00006260| 62 61 73 65 64 20 6f 6e | 20 61 20 d2 64 72 61 77 |based on| a .draw|
|00006270| 69 6e 67 20 63 6f 6d 70 | 6f 6e 65 6e 74 d3 d1 61 |ing comp|onent..a|
|00006280| 20 73 69 6d 70 6c 65 20 | 63 6f 6d 70 6f 6e 65 6e | simple |componen|
|00006290| 74 20 74 68 61 74 20 64 | 72 61 77 73 20 61 6e 20 |t that d|raws an |
|000062a0| 6f 62 6a 65 63 74 20 6f | 66 20 61 20 70 61 72 74 |object o|f a part|
|000062b0| 69 63 75 6c 61 72 20 73 | 68 61 70 65 20 6f 6e 20 |icular s|hape on |
|000062c0| 74 68 65 20 73 63 72 65 | 65 6e 2e 20 54 68 69 73 |the scre|en. This|
|000062d0| 20 73 65 63 74 69 6f 6e | 20 69 6e 63 6c 75 64 65 | section| include|
|000062e0| 73 20 74 68 65 20 63 6f | 64 65 20 66 6f 72 20 61 |s the co|de for a|
|000062f0| 20 64 72 61 77 69 6e 67 | 20 63 6f 6d 70 6f 6e 65 | drawing| compone|
|00006300| 6e 74 2e 0d 54 68 65 20 | 53 74 72 75 63 74 75 72 |nt..The |Structur|
|00006310| 65 20 6f 66 20 61 20 43 | 6f 6d 70 6f 6e 65 6e 74 |e of a C|omponent|
|00006320| 0d 0d 45 76 65 72 79 20 | 63 6f 6d 70 6f 6e 65 6e |..Every |componen|
|00006330| 74 20 6d 75 73 74 20 68 | 61 76 65 20 61 20 73 69 |t must h|ave a si|
|00006340| 6e 67 6c 65 20 65 6e 74 | 72 79 20 70 6f 69 6e 74 |ngle ent|ry point|
|00006350| 20 74 68 61 74 20 72 65 | 74 75 72 6e 73 20 61 20 | that re|turns a |
|00006360| 76 61 6c 75 65 20 6f 66 | 20 74 79 70 65 20 43 6f |value of| type Co|
|00006370| 6d 70 6f 6e 65 6e 74 52 | 65 73 75 6c 74 20 28 61 |mponentR|esult (a|
|00006380| 20 6c 6f 6e 67 20 69 6e | 74 65 67 65 72 29 2e 20 | long in|teger). |
|00006390| 57 68 65 6e 65 76 65 72 | 20 74 68 65 20 43 6f 6d |Whenever| the Com|
|000063a0| 70 6f 6e 65 6e 74 20 4d | 61 6e 61 67 65 72 20 72 |ponent M|anager r|
|000063b0| 65 63 65 69 76 65 73 20 | 61 20 72 65 71 75 65 73 |eceives |a reques|
|000063c0| 74 20 66 6f 72 20 79 6f | 75 72 20 63 6f 6d 70 6f |t for yo|ur compo|
|000063d0| 6e 65 6e 74 2c 20 69 74 | 20 63 61 6c 6c 73 20 79 |nent, it| calls y|
|000063e0| 6f 75 72 20 63 6f 6d 70 | 6f 6e 65 6e 74 d5 73 20 |our comp|onent.s |
|000063f0| 65 6e 74 72 79 20 70 6f | 69 6e 74 20 61 6e 64 20 |entry po|int and |
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.